diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-06-20 20:59:47 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-06-22 16:50:17 +0200 |
commit | 43cd955d4052d9ffa4de5444d0900fba0d7ef3b1 (patch) | |
tree | 32344a245fa1c566b1b0305e11e1f9e7f09143a9 /svtools | |
parent | 00285a7de24019f9c9eaf9a165a4bed21938eb21 (diff) |
improve/fix comments
Change-Id: Ie3c017eb9c6ceadd4b7982eb2a28c74bf6767631
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/graphic/grfmgr2.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/svtools/source/graphic/grfmgr2.cxx b/svtools/source/graphic/grfmgr2.cxx index 4565a67b447a..a9f357c104ad 100644 --- a/svtools/source/graphic/grfmgr2.cxx +++ b/svtools/source/graphic/grfmgr2.cxx @@ -317,9 +317,8 @@ sal_Bool GraphicManager::ImplDraw( OutputDevice* pOut, const Point& rPt, { if( !!aContainedBmpEx ) { - // #117889# Use bitmap output method, if - // metafile basically contains only a single - // bitmap + // Use bitmap output method, if metafile basically contains only a single + // bitmap (allows caching the resulting pixmap). BitmapEx aDstBmpEx; if( ImplCreateOutput( pOut, rPt, rSz, aContainedBmpEx, rAttr, nFlags, &aDstBmpEx ) ) @@ -593,7 +592,7 @@ sal_Bool GraphicManager::ImplCreateOutput( OutputDevice* pOut, rOutMtf = rMtf; - // #117889# count bitmap actions, and flag actions that paint, but + // Count bitmap actions, and flag actions that paint, but // are no bitmaps. sal_Int32 nNumBitmaps(0); bool bNonBitmapActionEncountered(false); @@ -608,9 +607,9 @@ sal_Bool GraphicManager::ImplCreateOutput( OutputDevice* pOut, const MapMode rPrefMapMode( rMtf.GetPrefMapMode() ); const Size rSizePix( pOut->LogicToPixel( aNewSize, rPrefMapMode ) ); - // taking care of font width default if scaling metafile. - // #117889# use existing metafile scan, to determine whether - // the metafile basically displays a single bitmap. Note that + // Determine whether the metafile basically displays + // a single bitmap (in which case that bitmap is simply used directly + // instead of playing the metafile). Note that // the solution, as implemented here, is quite suboptimal (the // cases where a mtf consisting basically of a single bitmap, // that fail to pass the test below, are probably frequent). A @@ -627,6 +626,7 @@ sal_Bool GraphicManager::ImplCreateOutput( OutputDevice* pOut, { case META_FONT_ACTION: { + // taking care of font width default if scaling metafile. MetaFontAction* pA = (MetaFontAction*)pAct; Font aFont( pA->GetFont() ); if ( !aFont.GetWidth() ) |