sfx2/source/appl/appmisc.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 707f59019a5edafb4278a5591f8f6578041f1a3c
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Sat Apr 13 23:38:03 2024 +0500
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Sun Apr 14 08:58:56 2024 +0200

    Use more o3tl::convert
    
    Change-Id: I2a4f109b8c1031d0330f249b7666ae65f9fae7ea
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166062
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/sfx2/source/appl/appmisc.cxx b/sfx2/source/appl/appmisc.cxx
index 01b278b16506..cb793022a62f 100644
--- a/sfx2/source/appl/appmisc.cxx
+++ b/sfx2/source/appl/appmisc.cxx
@@ -170,7 +170,7 @@ bool SfxApplication::loadBrandSvg(const char *pName, 
BitmapEx &rBitmap, int nWid
         // cancel out rasterize's mm2pixel conversion
         // see fFactor100th_mmToInch in
         // drawinglayer/source/drawinglayeruno/xprimitive2drenderer.cxx
-        const double fFakeDPI=2.54 * 1000.0;
+        constexpr double fFakeDPI = o3tl::convert(1.0, o3tl::Length::in, 
o3tl::Length::mm100);
 
         geometry::RealRectangle2D aRealRect(
             0, 0,

Reply via email to