diff options
-rw-r--r-- | editeng/source/outliner/outliner.cxx | 4 | ||||
-rw-r--r-- | include/editeng/outliner.hxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/editeng/source/outliner/outliner.cxx b/editeng/source/outliner/outliner.cxx index 50c88f0d9376..cecf2b2f3f0d 100644 --- a/editeng/source/outliner/outliner.cxx +++ b/editeng/source/outliner/outliner.cxx @@ -1771,9 +1771,9 @@ void Outliner::DrawingTab( const Point& rStartPos, long nWidth, const OUString& } } -long Outliner::RemovingPagesHdl( OutlinerView* pView ) +bool Outliner::RemovingPagesHdl( OutlinerView* pView ) { - return aRemovingPagesHdl.IsSet() ? aRemovingPagesHdl.Call( pView ) : sal_True; + return !aRemovingPagesHdl.IsSet() || aRemovingPagesHdl.Call( pView ); } bool Outliner::ImpCanDeleteSelectedPages( OutlinerView* pCurView, sal_Int32 _nFirstPage, sal_Int32 nPages ) diff --git a/include/editeng/outliner.hxx b/include/editeng/outliner.hxx index 960caa8752df..12bb7792fe13 100644 --- a/include/editeng/outliner.hxx +++ b/include/editeng/outliner.hxx @@ -777,7 +777,7 @@ public: sal_Int16 GetPrevDepth() const { return static_cast<sal_Int16>(nDepthChangedHdlPrevDepth); } ParaFlag GetPrevFlags() const { return mnDepthChangeHdlPrevFlags; } - long RemovingPagesHdl( OutlinerView* ); + bool RemovingPagesHdl( OutlinerView* ); void SetRemovingPagesHdl(const Link& rLink){aRemovingPagesHdl=rLink;} Link GetRemovingPagesHdl() const { return aRemovingPagesHdl; } long IndentingPagesHdl( OutlinerView* ); |