[Libreoffice-commits] core.git: sw/source
Stephan Bergmann
sbergman at redhat.com
Tue Oct 27 09:42:30 PDT 2015
sw/source/uibase/docvw/edtwin.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 589934317239e46235d9cc53554f877d332fa777
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Tue Oct 27 17:41:31 2015 +0100
Remove unncessary, wrong downcast
...which caused
> sw/source/uibase/docvw/edtwin.cxx:4280:47: runtime error: downcast of address 0x6060015556a0 which does not point to an object of type 'SwDrawContact'
> 0x6060015556a0: note: object is of type 'SwFlyDrawContact'
> 11 07 80 2c 50 26 83 79 65 7f 00 00 d0 26 83 79 65 7f 00 00 80 63 a6 01 20 61 00 00 00 00 00 00
> ^~~~~~~~~~~~~~~~~~~~~~~
> vptr for 'SwFlyDrawContact'
> SwEditWin::MouseButtonUp(MouseEvent const&) sw/source/uibase/docvw/edtwin.cxx:4280:47
> ImplHandleMouseEvent(vcl::Window*, MouseNotifyEvent, bool, long, long, unsigned long, unsigned short, MouseEventModifiers) vcl/source/window/winproc.cxx:736:17
> ImplHandleSalMouseButtonUp(vcl::Window*, SalMouseEvent*) vcl/source/window/winproc.cxx:2082:12
> ImplWindowFrameProc(vcl::Window*, SalFrame*, unsigned short, void const*) vcl/source/window/winproc.cxx:2425:20
> SalFrame::CallCallback(unsigned short, void const*) const vcl/inc/salframe.hxx:255:33
> GtkSalFrame::signalButton(_GtkWidget*, _GdkEventButton*, void*) vcl/unx/gtk3/window/../../gtk/window/gtksalframe.cxx:3176:5
> [...]
Change-Id: Ib9013eb3ff7546ee6534d5148d2505608a9d70f9
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx
index 4cbf5d5..0ec6422 100644
--- a/sw/source/uibase/docvw/edtwin.cxx
+++ b/sw/source/uibase/docvw/edtwin.cxx
@@ -4277,7 +4277,7 @@ void SwEditWin::MouseButtonUp(const MouseEvent& rMEvt)
if (pSdrView && pSdrView->PickObj(aDocPos, pSdrView->getHitTolLog(), pObj, pPV, SdrSearchOptions::ALSOONMASTER ))
{
std::map<SwFrameFormat*, SwFrameFormat*> aTextBoxShapes = SwTextBoxHelper::findShapes(rSh.GetDoc());
- SwDrawContact* pDrawContact = static_cast<SwDrawContact*>(GetUserCall(pObj));
+ auto pDrawContact = GetUserCall(pObj);
SwFrameFormat* pFormat = pDrawContact->GetFormat();
if (aTextBoxShapes.find(pFormat) == aTextBoxShapes.end())
{
More information about the Libreoffice-commits
mailing list