summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-09 11:57:40 +0200
committerNoel Grandin <noel@peralex.com>2014-10-10 09:31:42 +0200
commit8ab1e7cdecc31c481ac5b28aab48fda4151577cf (patch)
tree04eb6004cf4bfb8ab8653e686063912f97087963 /sw/source
parent6d848b2aaf4eb814dba90a3db8e5494530dc0ada (diff)
only one value of the postit sort enum was being used
..so bin it Change-Id: Iff6bad245a5fdd14fb785f7f5b3ca65ab51b742b
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/uibase/docvw/PostItMgr.cxx11
1 files changed, 3 insertions, 8 deletions
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<SwSidebarItem*>::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);
}
}