summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-02-14 10:24:22 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-02-14 11:41:07 +0100
commiteaf3c9e5d1090ebadecccf4e20b6b1f7fa53af26 (patch)
tree68c3281909398e22c8b1fbba4b88eb1b2c3e1cda
parent29b27aecb44c00094a6c6d0f8141af969afd9630 (diff)
tdf#123439 Assert wrt PointerStyle fails when moving cursor over toolbar
regression from commit a2b687a88feedfae0087bfc999b3cf49b9d3d24b Date: Tue Feb 12 10:12:03 2019 +0200 Pointer is pointless Change-Id: I727e68c71f4ebacb9adae83f1f9b43ce999d5374 Reviewed-on: https://gerrit.libreoffice.org/67803 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--sd/source/ui/func/fudraw.cxx2
-rw-r--r--sd/source/ui/func/fudspord.cxx1
-rw-r--r--sd/source/ui/func/fuzoom.cxx3
-rw-r--r--svtools/source/hatchwindow/ipwin.cxx1
-rw-r--r--svx/source/svdraw/svdcrtv.cxx3
-rw-r--r--toolkit/source/awt/vclxpointer.cxx2
-rw-r--r--vcl/source/control/fixedhyper.cxx1
-rw-r--r--vcl/source/window/window.cxx2
8 files changed, 12 insertions, 3 deletions
diff --git a/sd/source/ui/func/fudraw.cxx b/sd/source/ui/func/fudraw.cxx
index 265915ec671f..223ee7e6e482 100644
--- a/sd/source/ui/func/fudraw.cxx
+++ b/sd/source/ui/func/fudraw.cxx
@@ -75,6 +75,8 @@ namespace sd {
FuDraw::FuDraw(ViewShell* pViewSh, ::sd::Window* pWin, ::sd::View* pView,
SdDrawDocument* pDoc, SfxRequest& rReq)
: FuPoor(pViewSh, pWin, pView, pDoc, rReq)
+ , aNewPointer(PointerStyle::Arrow)
+ , aOldPointer(PointerStyle::Arrow)
, bMBDown(false)
, bDragHelpLine(false)
, nHelpLine(0)
diff --git a/sd/source/ui/func/fudspord.cxx b/sd/source/ui/func/fudspord.cxx
index 2157ba57b9ba..f3b620a57d9a 100644
--- a/sd/source/ui/func/fudspord.cxx
+++ b/sd/source/ui/func/fudspord.cxx
@@ -34,6 +34,7 @@ namespace sd {
FuDisplayOrder::FuDisplayOrder( ViewShell* pViewSh, ::sd::Window* pWin, ::sd::View* pView, SdDrawDocument* pDoc, SfxRequest& rReq)
: FuPoor(pViewSh, pWin, pView, pDoc, rReq)
+, maPtr(PointerStyle::Arrow)
, mpRefObj(nullptr)
{
}
diff --git a/sd/source/ui/func/fuzoom.cxx b/sd/source/ui/func/fuzoom.cxx
index fc4489989298..8b7a63e30ddd 100644
--- a/sd/source/ui/func/fuzoom.cxx
+++ b/sd/source/ui/func/fuzoom.cxx
@@ -50,7 +50,8 @@ FuZoom::FuZoom(
SfxRequest& rReq)
: FuPoor(pViewSh, pWin, pView, pDoc, rReq),
bVisible(false),
- bStartDrag(false)
+ bStartDrag(false),
+ aPtr(PointerStyle::Arrow)
{
}
diff --git a/svtools/source/hatchwindow/ipwin.cxx b/svtools/source/hatchwindow/ipwin.cxx
index 4dd2b5a32eb6..adb751941456 100644
--- a/svtools/source/hatchwindow/ipwin.cxx
+++ b/svtools/source/hatchwindow/ipwin.cxx
@@ -434,6 +434,7 @@ SvResizeWindow::SvResizeWindow
VCLXHatchWindow* pWrapper
)
: Window( pParent, WB_CLIPCHILDREN )
+ , m_aOldPointer(PointerStyle::Arrow)
, m_nMoveGrab( -1 )
, m_bActive( false )
, m_pWrapper( pWrapper )
diff --git a/svx/source/svdraw/svdcrtv.cxx b/svx/source/svdraw/svdcrtv.cxx
index 4edb4840c306..15e6a07cef00 100644
--- a/svx/source/svdraw/svdcrtv.cxx
+++ b/svx/source/svdraw/svdcrtv.cxx
@@ -198,7 +198,8 @@ SdrCreateView::SdrCreateView(
SdrModel& rSdrModel,
OutputDevice* pOut)
: SdrDragView(rSdrModel, pOut),
- mpCreateViewExtraData(new ImpSdrCreateViewExtraData())
+ mpCreateViewExtraData(new ImpSdrCreateViewExtraData()),
+ aCurrentCreatePointer(PointerStyle::Arrow)
{
ImpClearVars();
}
diff --git a/toolkit/source/awt/vclxpointer.cxx b/toolkit/source/awt/vclxpointer.cxx
index 41c98b967217..d47380eeb434 100644
--- a/toolkit/source/awt/vclxpointer.cxx
+++ b/toolkit/source/awt/vclxpointer.cxx
@@ -22,7 +22,7 @@
#include <toolkit/helper/macros.hxx>
#include <cppuhelper/supportsservice.hxx>
-VCLXPointer::VCLXPointer()
+VCLXPointer::VCLXPointer() : maPointer(PointerStyle::Arrow)
{
}
diff --git a/vcl/source/control/fixedhyper.cxx b/vcl/source/control/fixedhyper.cxx
index 9905327a72f7..fc4c5e3eb46a 100644
--- a/vcl/source/control/fixedhyper.cxx
+++ b/vcl/source/control/fixedhyper.cxx
@@ -36,6 +36,7 @@ using namespace css;
FixedHyperlink::FixedHyperlink(vcl::Window* pParent, WinBits nWinStyle)
: FixedText(pParent, nWinStyle)
, m_nTextLen(0)
+ , m_aOldPointer(PointerStyle::Arrow)
{
Initialize();
}
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 8c560439b406..a1b393193ab0 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -44,6 +44,7 @@
#include <vcl/virdev.hxx>
#include <vcl/settings.hxx>
#include <vcl/sysdata.hxx>
+#include <vcl/ptrstyle.hxx>
#include <vcl/IDialogRenderable.hxx>
#include <vcl/uitest/uiobject.hxx>
@@ -612,6 +613,7 @@ WindowImpl::WindowImpl( WindowType nType )
mnEventListenersIteratingCount = 0;
mnChildEventListenersIteratingCount = 0;
mpCursor = nullptr; // cursor
+ maPointer = PointerStyle::Arrow;
mpVCLXWindow = nullptr;
mpAccessibleInfos = nullptr;
maControlForeground = COL_TRANSPARENT; // no foreground set