summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-09-05 12:04:50 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-09-05 12:04:50 +0100
commitd13e7ae4673d2252d9ac74238a2e8ad7a6a045af (patch)
treed3c98031d0389fdd467de5c1bc304ab43d199572 /sd
parentb5dddbbb41f7c4c7d9b89caaec296f0133589e5b (diff)
CID#1079335 Uninitialized scalar field
Change-Id: If918af4352c54cf92dbb45bb9a689ca2e7a8a863
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/inc/unmodpg.hxx8
-rw-r--r--sd/source/ui/view/unmodpg.cxx5
2 files changed, 9 insertions, 4 deletions
diff --git a/sd/source/ui/inc/unmodpg.hxx b/sd/source/ui/inc/unmodpg.hxx
index bd48758d626b..3b389bcd2b94 100644
--- a/sd/source/ui/inc/unmodpg.hxx
+++ b/sd/source/ui/inc/unmodpg.hxx
@@ -33,10 +33,10 @@ class ModifyPageUndoAction : public SdUndoAction
OUString maNewName;
AutoLayout meOldAutoLayout;
AutoLayout meNewAutoLayout;
- sal_Bool mbOldBckgrndVisible;
- sal_Bool mbNewBckgrndVisible;
- sal_Bool mbOldBckgrndObjsVisible;
- sal_Bool mbNewBckgrndObjsVisible;
+ sal_Bool mbOldBckgrndVisible;
+ sal_Bool mbNewBckgrndVisible;
+ sal_Bool mbOldBckgrndObjsVisible;
+ sal_Bool mbNewBckgrndObjsVisible;
OUString maComment;
diff --git a/sd/source/ui/view/unmodpg.cxx b/sd/source/ui/view/unmodpg.cxx
index 7ff176aff7f5..580c71c5c277 100644
--- a/sd/source/ui/view/unmodpg.cxx
+++ b/sd/source/ui/view/unmodpg.cxx
@@ -70,6 +70,11 @@ ModifyPageUndoAction::ModifyPageUndoAction(
mbOldBckgrndVisible = aVisibleLayers.IsSet(aBckgrnd);
mbOldBckgrndObjsVisible = aVisibleLayers.IsSet(aBckgrndObj);
}
+ else
+ {
+ mbOldBckgrndVisible = false;
+ mbOldBckgrndObjsVisible = false;
+ }
maComment = SD_RESSTR(STR_UNDO_MODIFY_PAGE);
}