[Libreoffice-commits] core.git: 2 commits - sd/source vcl/source
Caolán McNamara
caolanm at redhat.com
Sun May 15 10:12:11 UTC 2016
sd/source/ui/view/outlview.cxx | 5 +++++
vcl/source/window/window.cxx | 7 +++++--
2 files changed, 10 insertions(+), 2 deletions(-)
New commits:
commit a3123cd0105c1feec3a06d071c97cb758b307bf8
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sun May 15 10:59:11 2016 +0100
coverity#1361592 Uninitialized scalar field
Change-Id: I6cb8827c9da73516e71aee889cfdfcb7598a9926
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 695967a..105f62f 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -745,13 +745,16 @@ ImplWinData::ImplWinData() :
mpExtOldText(nullptr),
mpExtOldAttrAry(nullptr),
mpCursorRect(nullptr),
- mnCursorExtWidth(),
+ mnCursorExtWidth(0),
+ mbVertical(false),
mpCompositionCharRects(nullptr),
+ mnCompositionCharRects(0),
mpFocusRect(nullptr),
mpTrackRect(nullptr),
mnTrackFlags(ShowTrackFlags::NONE),
mnIsTopWindow((sal_uInt16) ~0), // not initialized yet, 0/1 will indicate TopWindow (see IsTopWindow())
- mbMouseOver(false)
+ mbMouseOver(false),
+ mbEnableNativeWidget(false)
{
}
commit dcc4b29d9b87a56a240f12342f0fef5c1b455100
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sun May 15 10:56:06 2016 +0100
coverity#1361590 Uninitialized scalar field
Change-Id: Idb2ab797294f676e4e734cd272244928adf3f221
diff --git a/sd/source/ui/view/outlview.cxx b/sd/source/ui/view/outlview.cxx
index e00721a..94fac3d 100644
--- a/sd/source/ui/view/outlview.cxx
+++ b/sd/source/ui/view/outlview.cxx
@@ -100,6 +100,11 @@ OutlineView::OutlineView( DrawDocShell& rDocSh, vcl::Window* pWindow, OutlineVie
mnPaperWidth = (mrOutlineViewShell.GetActiveWindow()->GetViewSize().Width() - 4000);
mrOutliner.SetPaperSize(Size(mnPaperWidth, 400000000));
}
+ else
+ {
+ // width: DIN A4, two margins at 1 cm each
+ mnPaperWidth = 19000;
+ }
// insert View into Outliner
for (OutlinerView* & rp : mpOutlinerView)
More information about the Libreoffice-commits
mailing list