diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-05-07 09:23:54 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-05-07 09:37:28 +0100 |
commit | af9b1a8b2e7589d33168e5b252ee38d7c9821ab1 (patch) | |
tree | a43bf96bd8ef93c712144d7ba3d716f26912872d /sd/source | |
parent | efecaf03adff75aa88be7862eb2c4f1261df5e60 (diff) |
VclPtr: one ref too many
Change-Id: I84cf33c8e68c41223aaa12208a2845675bbbfd5a
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/view/drviews1.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sd/source/ui/view/drviews1.cxx b/sd/source/ui/view/drviews1.cxx index b5674ce6cfdf..9aa19dabd03c 100644 --- a/sd/source/ui/view/drviews1.cxx +++ b/sd/source/ui/view/drviews1.cxx @@ -494,8 +494,9 @@ SvxRuler* DrawViewShell::CreateHRuler (::sd::Window* pWin, bool bIsFirst) else aWBits = WB_HSCROLL | WB_3DLOOK | WB_BORDER; - pRuler = new Ruler (*this, GetParentWindow(), pWin, nFlags, + pRuler = VclPtr<Ruler>::Create(*this, GetParentWindow(), pWin, nFlags, GetViewFrame()->GetBindings(), aWBits); + pRuler->SetSourceUnit(pWin->GetMapMode().GetMapUnit()); // Metric ... |