diff options
author | Radek Doulik <rodo@novell.com> | 2011-06-22 15:42:50 +0200 |
---|---|---|
committer | Radek Doulik <rodo@novell.com> | 2011-06-23 13:38:50 +0200 |
commit | 224b2a46820a320b196c1c4a339fe77d80235c27 (patch) | |
tree | 21214ef5a55d7c3177d2f7f7b66a12533cf23271 /canvas/source/cairo/cairo_spritecanvashelper.cxx | |
parent | 8ade517f3d7d30c048cae3bf218e7f4df6ed83d9 (diff) |
fix condition for compositing surface refresh
- fixes problems on slideshow window shrinking
Diffstat (limited to 'canvas/source/cairo/cairo_spritecanvashelper.cxx')
-rw-r--r-- | canvas/source/cairo/cairo_spritecanvashelper.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/canvas/source/cairo/cairo_spritecanvashelper.cxx b/canvas/source/cairo/cairo_spritecanvashelper.cxx index cdac16cbf8b7..75a8884df252 100644 --- a/canvas/source/cairo/cairo_spritecanvashelper.cxx +++ b/canvas/source/cairo/cairo_spritecanvashelper.cxx @@ -524,8 +524,8 @@ namespace cairocanvas ::cairo::SurfaceSharedPtr SpriteCanvasHelper::getCompositingSurface( const ::basegfx::B2ISize& rNeededSize ) { - if( rNeededSize.getX() < maCompositingSurfaceSize.getX() || - rNeededSize.getY() < maCompositingSurfaceSize.getY() ) + if( rNeededSize.getX() > maCompositingSurfaceSize.getX() || + rNeededSize.getY() > maCompositingSurfaceSize.getY() ) { // need to give buffer more size mpCompositingSurface.reset(); |