diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-11-01 13:46:46 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-11-01 13:46:46 +0000 |
commit | 93955d7bbf618c76dd00efa66797f54e36b1e895 (patch) | |
tree | 91788a79942e4ced6cf2419c60a16a3b2bf30b0c /slideshow | |
parent | 0425d300a96a9765aacbd8fdd31d6424e245d78e (diff) |
INTEGRATION: CWS thbpp9_SRC680 (1.4.22); FILE MERGED
2007/10/17 21:01:29 thb 1.4.22.1: #i82485# Avoid unnecessary repaints
Diffstat (limited to 'slideshow')
-rw-r--r-- | slideshow/source/engine/slideview.cxx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/slideshow/source/engine/slideview.cxx b/slideshow/source/engine/slideview.cxx index 5e5987c071ff..2d1cae8b95e4 100644 --- a/slideshow/source/engine/slideview.cxx +++ b/slideshow/source/engine/slideview.cxx @@ -4,9 +4,9 @@ * * $RCSfile: slideview.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: vg $ $Date: 2007-07-20 05:28:30 $ + * last change: $Author: hr $ $Date: 2007-11-01 14:46:46 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -1058,11 +1058,17 @@ void SlideView::modified( const lang::EventObject& /*aEvent*/ ) canvas::tools::setIdentityAffineMatrix2D(aViewTransform); } - // view transformation changed. Modify canvas matrix, then + // view transformation really changed? + basegfx::B2DHomMatrix aNewTransform; basegfx::unotools::homMatrixFromAffineMatrix( - maViewTransform, + aNewTransform, aViewTransform ); + if( aNewTransform == maViewTransform ) + return; // No change, nothing to do + + maViewTransform = aNewTransform; + updateCanvas(); // notify view change. Don't call EventMultiplexer directly, this |