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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Mon Aug 19 14:14:11 UTC 2019


 vcl/source/control/field.cxx  |    5 ++++-
 vcl/source/window/builder.cxx |    5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

New commits:
commit 594bf9e60a69184fdfaa3b9a0ac4206a2a793576
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Aug 19 13:23:35 2019 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Aug 19 16:13:18 2019 +0200

    use double prime symbol for inch
    
    Change-Id: I8565bbe8a72ee748676f673239725e5eb4f3ed6f
    Reviewed-on: https://gerrit.libreoffice.org/77718
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx
index fadd02f7eeae..7387a2996f05 100644
--- a/vcl/source/control/field.cxx
+++ b/vcl/source/control/field.cxx
@@ -1389,8 +1389,11 @@ OUString MetricFormatter::CreateFieldText( sal_Int64 nValue ) const
             aStr += " ";
         if (meUnit == FieldUnit::INCH)
         {
-            if (aSuffix != "\"")
+            OUString sDoublePrime = u"\u2033";
+            if (aSuffix != "\"" && aSuffix != sDoublePrime)
                 aStr += " ";
+            else
+                aSuffix = sDoublePrime;
         }
         assert(meUnit != FieldUnit::PERCENT);
         aStr += aSuffix;
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index 502ae061367f..09c9a9a900a3 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -247,8 +247,11 @@ namespace weld
                 aStr += " ";
             if (m_eSrcUnit == FieldUnit::INCH)
             {
-                if (aSuffix != "\"")
+                OUString sDoublePrime = u"\u2033";
+                if (aSuffix != "\"" && aSuffix != sDoublePrime)
                     aStr += " ";
+                else
+                    aSuffix = sDoublePrime;
             }
             assert(m_eSrcUnit != FieldUnit::PERCENT);
             aStr += aSuffix;


More information about the Libreoffice-commits mailing list