[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.1' - sfx2/source

Pranav Kant pranavk at collabora.co.uk
Fri Dec 16 21:54:30 UTC 2016


 sfx2/source/control/unoctitm.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 1308498296d0d3dec32de92bdbd275ee75a70d54
Author: Pranav Kant <pranavk at collabora.co.uk>
Date:   Fri Dec 16 19:23:41 2016 +0530

    lok: Sort ascending/descending is enabled/disabled state
    
    ... and not true/false
    
    Change-Id: Ie9ae6cbf70c1934dda1002deabda23c9f461c8b1
    (cherry picked from commit fc8d82743c90430aaf7dd7354ce97d34429c9882)
    Reviewed-on: https://gerrit.libreoffice.org/32091
    Reviewed-by: Andras Timar <andras.timar at collabora.com>
    Tested-by: Andras Timar <andras.timar at collabora.com>

diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index f61065f..c8b0c27 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -1172,15 +1172,15 @@ static void InterceptLOKStateChangeEvent(const SfxViewFrame* pViewFrame, const c
              aEvent.FeatureURL.Path == "EntireRow" ||
              aEvent.FeatureURL.Path == "EntireColumn" ||
              aEvent.FeatureURL.Path == "EntireCell" ||
-             aEvent.FeatureURL.Path == "MergeCells")
+             aEvent.FeatureURL.Path == "MergeCells" ||
+             aEvent.FeatureURL.Path == "SortAscending" ||
+             aEvent.FeatureURL.Path == "SortDescending")
     {
         aBuffer.append(aEvent.IsEnabled ? OUString("enabled") : OUString("disabled"));
     }
     else if (aEvent.FeatureURL.Path == "InsertPage" ||
              aEvent.FeatureURL.Path == "DeletePage" ||
-             aEvent.FeatureURL.Path == "DuplicatePage" ||
-             aEvent.FeatureURL.Path == "SortAscending" ||
-             aEvent.FeatureURL.Path == "SortDescending")
+             aEvent.FeatureURL.Path == "DuplicatePage")
     {
         aBuffer.append(OUString::boolean(aEvent.IsEnabled));
     }


More information about the Libreoffice-commits mailing list