summaryrefslogtreecommitdiff
path: root/sw/source/filter/basflt/shellio.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/filter/basflt/shellio.cxx')
-rw-r--r--sw/source/filter/basflt/shellio.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/filter/basflt/shellio.cxx b/sw/source/filter/basflt/shellio.cxx
index 69e5ed9cb688..c9f300379892 100644
--- a/sw/source/filter/basflt/shellio.cxx
+++ b/sw/source/filter/basflt/shellio.cxx
@@ -119,7 +119,8 @@ sal_uLong SwReader::Read( const Reader& rOptions )
if( bSaveUndo )
{
// the reading of the page template cannot be undone!
- if( ( bReadPageDescs = po->aOpt.IsPageDescs() ) )
+ bReadPageDescs = po->aOpt.IsPageDescs();
+ if( bReadPageDescs )
{
bSaveUndo = false;
pDoc->GetIDocumentUndoRedo().DelAllUndoObj();