summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-11 16:20:52 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-11 16:23:11 +0100
commit1a6628bbddc13af51461879d155b139dbbab17ed (patch)
tree23081cd015379f873366848a43602e373470630d /vcl
parenta48d2d28ed69a076ac5705c62165c6bf8049e813 (diff)
smoketest fails: revert "fix rendering of metafiles embedded in emf+"
This reverts commit d0a69c9a1ffee644a8d2a2881c03847687e60af8 because make dev-install's smoketest is failing on --enable-debug and reportedly no --enable-debug
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/gdimtf.cxx37
1 files changed, 17 insertions, 20 deletions
diff --git a/vcl/source/gdi/gdimtf.cxx b/vcl/source/gdi/gdimtf.cxx
index faedf86a3e5f..bdbca9d4067d 100644
--- a/vcl/source/gdi/gdimtf.cxx
+++ b/vcl/source/gdi/gdimtf.cxx
@@ -565,30 +565,27 @@ void GDIMetaFile::Play( OutputDevice* pOut, size_t nPos )
pOut->SetLayoutMode( 0 );
pOut->SetDigitLanguage( 0 );
- OSL_TRACE("GDIMetaFile::Play on device of size: %d x %d", pOut->GetOutputSizePixel().Width(), pOut->GetOutputSizePixel().Height());
- if( !ImplPlayWithRenderer( pOut, Point(0,0), pOut->GetOutputSizePixel() ) ) {
- for( size_t nCurPos = nCurrentActionElement; nCurPos < nPos; nCurPos++ )
+ for( size_t nCurPos = nCurrentActionElement; nCurPos < nPos; nCurPos++ )
+ {
+ if( !Hook() )
{
- if( !Hook() )
+ MetaCommentAction* pCommentAct = static_cast<MetaCommentAction*>(pAction);
+ if( pAction->GetType() == META_COMMENT_ACTION &&
+ pCommentAct->GetComment().Equals("DELEGATE_PLUGGABLE_RENDERER") )
{
- MetaCommentAction* pCommentAct = static_cast<MetaCommentAction*>(pAction);
- if( pAction->GetType() == META_COMMENT_ACTION &&
- pCommentAct->GetComment().Equals("DELEGATE_PLUGGABLE_RENDERER") )
- {
- ImplDelegate2PluggableRenderer(pCommentAct, pOut);
- }
- else
- {
- pAction->Execute( pOut );
- }
-
- // flush output from time to time
- if( i++ > nSyncCount )
- ( (Window*) pOut )->Flush(), i = 0;
+ ImplDelegate2PluggableRenderer(pCommentAct, pOut);
+ }
+ else
+ {
+ pAction->Execute( pOut );
}
- pAction = NextAction();
+ // flush output from time to time
+ if( i++ > nSyncCount )
+ ( (Window*) pOut )->Flush(), i = 0;
}
+
+ pAction = NextAction();
}
pOut->Pop();
@@ -756,7 +753,7 @@ void GDIMetaFile::Play( OutputDevice* pOut, const Point& rPos,
{
GDIMetaFile* pMtf = pOut->GetConnectMetaFile();
- if( bUseCanvas && ImplPlayWithRenderer( pOut, rPos, aDestSize ) )
+ if( bUseCanvas && !pMtf && ImplPlayWithRenderer( pOut, rPos, aDestSize ) )
return;
Size aTmpPrefSize( pOut->LogicToPixel( GetPrefSize(), aDrawMap ) );