diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-06-22 11:50:38 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-06-22 16:50:18 +0200 |
commit | a83bf946d6e1f315a19ce6e6c9b5ddcb30926a22 (patch) | |
tree | e4de42c9ed54016b79bc050bc67cd34a02d8a5a8 /svtools | |
parent | 77987eacff20dec40caf29aae61d262239d441e9 (diff) |
fix counting of bitmaps in a metafile
if( !number ) { ... ++number; } would never get beyond 1.
Change-Id: Iac33df3a21280c76fcdd130b699b4ab6466b1f46
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/graphic/grfmgr2.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/svtools/source/graphic/grfmgr2.cxx b/svtools/source/graphic/grfmgr2.cxx index d0cf55bbf305..bd77e25326b6 100644 --- a/svtools/source/graphic/grfmgr2.cxx +++ b/svtools/source/graphic/grfmgr2.cxx @@ -683,8 +683,8 @@ sal_Bool GraphicManager::ImplCreateOutput( OutputDevice* pOut, pAction->GetBitmap().GetSizePixel(), rSizePix, bNonBitmapActionEncountered ); - ++nNumBitmaps; } + ++nNumBitmaps; break; case META_BMPSCALE_ACTION: @@ -701,8 +701,8 @@ sal_Bool GraphicManager::ImplCreateOutput( OutputDevice* pOut, rPrefMapMode ), rSizePix, bNonBitmapActionEncountered ); - ++nNumBitmaps; } + ++nNumBitmaps; break; case META_BMPSCALEPART_ACTION: @@ -720,8 +720,8 @@ sal_Bool GraphicManager::ImplCreateOutput( OutputDevice* pOut, rPrefMapMode ), rSizePix, bNonBitmapActionEncountered ); - ++nNumBitmaps; } + ++nNumBitmaps; break; case META_BMPEX_ACTION: @@ -737,8 +737,8 @@ sal_Bool GraphicManager::ImplCreateOutput( OutputDevice* pOut, pAction->GetBitmapEx().GetSizePixel(), rSizePix, bNonBitmapActionEncountered ); - ++nNumBitmaps; } + ++nNumBitmaps; break; case META_BMPEXSCALE_ACTION: @@ -755,8 +755,8 @@ sal_Bool GraphicManager::ImplCreateOutput( OutputDevice* pOut, rPrefMapMode ), rSizePix, bNonBitmapActionEncountered ); - ++nNumBitmaps; } + ++nNumBitmaps; break; case META_BMPEXSCALEPART_ACTION: @@ -773,8 +773,8 @@ sal_Bool GraphicManager::ImplCreateOutput( OutputDevice* pOut, rPrefMapMode ), rSizePix, bNonBitmapActionEncountered ); - ++nNumBitmaps; } + ++nNumBitmaps; break; // these actions actually output something (that's |