[Libreoffice-commits] core.git: sfx2/source

Caolán McNamara caolanm at redhat.com
Sun Mar 17 03:49:39 PDT 2013


 sfx2/source/appl/appmisc.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 1b67ddd86da592bd51a77563a5434b7363a369ec
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sun Mar 17 10:46:27 2013 +0000

    fix about logo not stretching to fit dialog width
    
    A regression since a1a0830d1ac3ffabbe35bd8a0264b64f1f7a9d67 where
    fFactor100th_mmToInch changed.
    
    This looks super fragile and presumably isn't exactly the right
    way we should be doing it.
    
    Change-Id: I7c34eefd2331e4fec4b7e6893c68a989f2f5fd62

diff --git a/sfx2/source/appl/appmisc.cxx b/sfx2/source/appl/appmisc.cxx
index 7e016ef..bd55b24 100644
--- a/sfx2/source/appl/appmisc.cxx
+++ b/sfx2/source/appl/appmisc.cxx
@@ -313,7 +313,9 @@ bool SfxApplication::loadBrandSvg(const char *pName, BitmapEx &rBitmap, int nWid
         if(xPrimitive2DRenderer.is())
         {
             // cancel out rasterize's mm2pixel conversion
-            const double fFakeDPI=1000.0/2.54;
+            // see fFactor100th_mmToInch in
+            // drawinglayer/source/drawinglayeruno/xprimitive2drenderer.cxx
+            const double fFakeDPI=2.54 * 1000.0;
 
             geometry::RealRectangle2D aRealRect(
                 0, 0,


More information about the Libreoffice-commits mailing list