Kaydet (Commit) 15b7da00 authored tarafından himajin100000's avatar himajin100000 Kaydeden (comit) Noel Grandin

fix for for-range loops should come to #ifdef DEBUG too

Change-Id: Ib1b317e2564080e367d8d1fa0245c1707b141e57
Reviewed-on: https://gerrit.libreoffice.org/52163Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst b19a6a54
......@@ -1314,14 +1314,14 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
#if OSL_DEBUG_LEVEL > 1
// iterate over all aCCList members and generate rectangles for the bounding boxes
rOutMtf.AddAction( new MetaFillColorAction( COL_WHITE, false ) );
for( aCurr = aCCList.begin(); aCurr != aLast; ++aCurr )
for(auto const& aCurr:aCCList)
{
if( aCurr->bIsSpecial )
if( aCurr.bIsSpecial )
rOutMtf.AddAction( new MetaLineColorAction( COL_RED, true) );
else
rOutMtf.AddAction( new MetaLineColorAction( COL_BLUE, true) );
rOutMtf.AddAction( new MetaRectAction( aMapModeVDev->PixelToLogic( aCurr->aBounds ) ) );
rOutMtf.AddAction( new MetaRectAction( aMapModeVDev->PixelToLogic( aCurr.aBounds ) ) );
}
#endif
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment