[Libreoffice-commits] .: Branch 'libreoffice-3-5' - svx/source

Thorsten Behrens thorsten at kemper.freedesktop.org
Fri Apr 13 06:19:00 PDT 2012


 svx/source/sdr/contact/viewobjectcontactofgraphic.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 90872c979687c6e866ca632e770e75f05f54e3b2
Author: Muthu Subramanian <sumuthu at suse.com>
Date:   Thu Apr 12 16:05:23 2012 +0530

    n#717947: Fixed pdf export (of images).
    
    Signed-off-by: Thorsten Behrens <tbehrens at suse.com>

diff --git a/svx/source/sdr/contact/viewobjectcontactofgraphic.cxx b/svx/source/sdr/contact/viewobjectcontactofgraphic.cxx
index b2052db..7c15ef3 100644
--- a/svx/source/sdr/contact/viewobjectcontactofgraphic.cxx
+++ b/svx/source/sdr/contact/viewobjectcontactofgraphic.cxx
@@ -130,7 +130,7 @@ namespace sdr
                     }
                     else
                     {
-                        if(rObjectContact.isOutputToPrinter())
+                        if(rObjectContact.isOutputToPrinter() || rObjectContact.isOutputToPDFFile())
                         {
                             // #i76395# preview mechanism is only active if
                             // swapin is called from inside paint preparation, so mbInsidePaint
@@ -182,7 +182,7 @@ namespace sdr
                 {
                     ObjectContact& rObjectContact = GetObjectContact();
 
-                    if(rObjectContact.isOutputToPrinter())
+                    if(rObjectContact.isOutputToPrinter() || rObjectContact.isOutputToPDFFile())
                     {
                         // #i76395# preview mechanism is only active if
                         // swapin is called from inside paint preparation, so mbInsidePaint
@@ -195,7 +195,7 @@ namespace sdr
                         rGrafObj.mbInsidePaint = sal_True;
                         rGrafObj.ForceSwapIn();
                         rGrafObj.mbInsidePaint = sal_False;
-                        }
+                    }
 
                     bRetval = true;
                 }


More information about the Libreoffice-commits mailing list