Kaydet (Commit) fd67ee14 authored tarafından Michael Stahl's avatar Michael Stahl

tdf#91106 sfx2: Stylist hierarchical: sort the Default Style first

(regression from 41af2a9e)

Change-Id: I47377447dd1e04a44033dea27ce7307a65821737
üst fa585ae7
......@@ -555,6 +555,10 @@ void MakeTree_Impl(StyleTreeArr_Impl& rArr)
// tdf#91106 sort top level styles
std::sort(rArr.begin(), rArr.end(),
[&aSorter](std::unique_ptr<StyleTree_Impl> const & pEntry1, std::unique_ptr<StyleTree_Impl> const & pEntry2) {
if (pEntry2->getName() == "Default Style")
return false;
if (pEntry1->getName() == "Default Style")
return true; // default always first
return aSorter.compare(pEntry1->getName(), pEntry2->getName()) < 0;
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment