From 8ab1e7cdecc31c481ac5b28aab48fda4151577cf Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 9 Oct 2014 11:57:40 +0200 Subject: only one value of the postit sort enum was being used ..so bin it Change-Id: Iff6bad245a5fdd14fb785f7f5b3ca65ab51b742b --- sw/source/uibase/docvw/PostItMgr.cxx | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'sw/source') diff --git a/sw/source/uibase/docvw/PostItMgr.cxx b/sw/source/uibase/docvw/PostItMgr.cxx index 54366223c8d3..ae461032e4ae 100644 --- a/sw/source/uibase/docvw/PostItMgr.cxx +++ b/sw/source/uibase/docvw/PostItMgr.cxx @@ -492,7 +492,7 @@ bool SwPostItMgr::CalcRects() // show notes in right order in navigator //prevent Anchors during layout to overlap, e.g. when moving a frame - Sort(SORT_POS); + Sort(); // sort the items into the right page vector, so layout can be done by page for(std::list::iterator i = mvPostItFlds.begin(); i != mvPostItFlds.end() ; ++i) @@ -1472,16 +1472,11 @@ void SwPostItMgr::Show() LayoutPostIts(); } -void SwPostItMgr::Sort(const short aType) +void SwPostItMgr::Sort() { if (mvPostItFlds.size()>1 ) { - switch (aType) - { - case SORT_POS: - mvPostItFlds.sort(comp_pos); - break; - } + mvPostItFlds.sort(comp_pos); } } -- cgit