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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Mon Jul 27 18:12:53 UTC 2020


 vcl/source/window/window2.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit b56aaa3bef7b5f3e8641df8e3eb67484fb199ed4
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Jul 27 12:21:52 2020 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Jul 27 20:12:05 2020 +0200

    make margin-start/margin-left and margin-end/margin-right synonyms
    
    Change-Id: I15dc9a87ca0a25d34b1280eb5e776e933a080a62
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99486
    Tested-by: Caolán McNamara <caolanm at redhat.com>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx
index cf0c74ca2d59..8a6809771c3a 100644
--- a/vcl/source/window/window2.cxx
+++ b/vcl/source/window/window2.cxx
@@ -1516,9 +1516,9 @@ bool Window::set_property(const OString &rKey, const OUString &rValue)
         SetQuickHelpText(rValue);
     else if (rKey == "border-width")
         set_border_width(rValue.toInt32());
-    else if (rKey == "margin-left")
+    else if (rKey == "margin-start" || rKey == "margin-left")
         set_margin_left(rValue.toInt32());
-    else if (rKey == "margin-right")
+    else if (rKey == "margin-end" || rKey == "margin-right")
         set_margin_right(rValue.toInt32());
     else if (rKey == "margin-top")
         set_margin_top(rValue.toInt32());


More information about the Libreoffice-commits mailing list