summaryrefslogtreecommitdiff
path: root/sw/source/ui/docvw
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2012-01-04 17:31:52 +0100
committerCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2012-01-04 17:34:28 +0100
commit8005d9db022c83fdfd64f6bb203e489dad13a664 (patch)
treeb98fe130c790103bdaf92b305b17d23a65372505 /sw/source/ui/docvw
parent9bb87161bbb4721af6810c89df3088a5f77bbead (diff)
Page Break: fix remaining indicator in some cases
When creating a new page without using a page break, before a page break, there was a remaining indicator. These are now checked and removed to avoid such cases.
Diffstat (limited to 'sw/source/ui/docvw')
-rw-r--r--sw/source/ui/docvw/FrameControlsManager.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sw/source/ui/docvw/FrameControlsManager.cxx b/sw/source/ui/docvw/FrameControlsManager.cxx
index 6b00d56f8c62..40e461def718 100644
--- a/sw/source/ui/docvw/FrameControlsManager.cxx
+++ b/sw/source/ui/docvw/FrameControlsManager.cxx
@@ -122,6 +122,14 @@ void SwFrameControlsManager::RemoveControls( const SwFrm* pFrm )
}
}
+void SwFrameControlsManager::RemoveControlsByType( FrameControlType eType, const SwFrm* pFrm )
+{
+ vector< SwFrameControlPtr >& aVect = m_aControls[eType];
+ aVect.erase( remove_if( aVect.begin(),
+ aVect.end(),
+ FramePredicate( pFrm ) ), aVect.end() );
+}
+
void SwFrameControlsManager::HideControls( FrameControlType eType )
{