summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2016-12-16 19:23:41 +0530
committerAndras Timar <andras.timar@collabora.com>2017-02-17 16:46:54 +0100
commite98c398e8aac44952c49f44aea391bebdd806a75 (patch)
treefcd057c07243b99585df50e9c485c79efbc9902d /sfx2
parenta1b16d9c84fae89f5f4b0d681fb695c80accdcc9 (diff)
lok: Sort ascending/descending is enabled/disabled state
... and not true/false Change-Id: Ie9ae6cbf70c1934dda1002deabda23c9f461c8b1 Reviewed-on: https://gerrit.libreoffice.org/32085 Reviewed-by: pranavk <pranavk@collabora.co.uk> Tested-by: pranavk <pranavk@collabora.co.uk> (cherry picked from commit 3ab307e568156b0fdafe1ee592870ef8c0e44750)
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/unoctitm.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index 920f921a5cfb..678d5fad4423 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -1050,15 +1050,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));
}