summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-12-09 23:54:45 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-12-10 12:05:59 +0000
commita231567481525384cbce9d49c2e3e425ecdd40ce (patch)
tree8436df296f07a63bf2489b9881af9ea01bcf28b6
parent3bc0b1e3bff2a1eb67b6d7f89b5087643c0db2b6 (diff)
be able to read the correct 'sort-ascending' value, fdo#72548
... for <table:content-validation table:display-list='sort-ascending' ...> but do not write it yet. Change-Id: I05bdf27cee27f7456b660267b95126420474eb99 (cherry picked from commit 8047ae4a8244199717698f2e2f5281551e97912c) Reviewed-on: https://gerrit.libreoffice.org/7017 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--sc/source/filter/xml/xmlcvali.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/filter/xml/xmlcvali.cxx b/sc/source/filter/xml/xmlcvali.cxx
index 2d634aea8a7f..d7f973df9e46 100644
--- a/sc/source/filter/xml/xmlcvali.cxx
+++ b/sc/source/filter/xml/xmlcvali.cxx
@@ -257,6 +257,12 @@ ScXMLContentValidationContext::ScXMLContentValidationContext( ScXMLImport& rImpo
}
else if (IsXMLToken(sValue, XML_SORTED_ASCENDING))
{
+ // Read old wrong value, fdo#72548
+ nShowList = sheet::TableValidationVisibility::SORTEDASCENDING;
+ }
+ else if (IsXMLToken(sValue, XML_SORT_ASCENDING))
+ {
+ // Read correct value, fdo#72548
nShowList = sheet::TableValidationVisibility::SORTEDASCENDING;
}
}