vcl/source/outdev/eps.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 6d2753da83f6f6a953622163f05263993e7915f5
Author:     Chris Sherlock <[email protected]>
AuthorDate: Sun May 8 18:24:27 2022 +1000
Commit:     Tomaž Vajngerl <[email protected]>
CommitDate: Fri May 20 08:05:02 2022 +0200

    vcl: move bDrawn variable closer to where it is first used in DrawEPS()
    
    Change-Id: I0c11ec2de55121cf7369672e9db1fdc6a3f63770
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134002
    Tested-by: Jenkins
    Reviewed-by: Tomaž Vajngerl <[email protected]>

diff --git a/vcl/source/outdev/eps.cxx b/vcl/source/outdev/eps.cxx
index f65c8aa97217..e3512652bbb0 100644
--- a/vcl/source/outdev/eps.cxx
+++ b/vcl/source/outdev/eps.cxx
@@ -27,8 +27,6 @@
 bool OutputDevice::DrawEPS( const Point& rPoint, const Size& rSize,
                             const GfxLink& rGfxLink, GDIMetaFile* pSubst )
 {
-    bool bDrawn(true);
-
     if ( mpMetaFile )
     {
         GDIMetaFile aSubst;
@@ -40,13 +38,15 @@ bool OutputDevice::DrawEPS( const Point& rPoint, const 
Size& rSize,
     }
 
     if ( !IsDeviceOutputNecessary() || ImplIsRecordLayout() )
-        return bDrawn;
+        return true;
 
     if( mbOutputClipped )
-        return bDrawn;
+        return true;
 
     tools::Rectangle aRect( ImplLogicToDevicePixel( tools::Rectangle( rPoint, 
rSize ) ) );
 
+    bool bDrawn = true;
+
     if( !aRect.IsEmpty() )
     {
         // draw the real EPS graphics

Reply via email to