[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - canvas/source

Julien Nabet serval2412 at yahoo.fr
Mon Jul 6 12:53:22 PDT 2015


 canvas/source/vcl/spritecanvashelper.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 135c3c567aeda1db3d81858cdad401b1df1d2504
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun Jul 5 11:53:39 2015 +0200

    tdf#91574: SLIDESHOW: crash when second monitor connected
    
    0  0x00002aaab1f6a803 in VirtualDevice::InnerImplSetOutputSizePixel(Size const&, bool, boost::shared_array<unsigned char> const&, bool) (this=0x0, rNewSize=Size = {...}, bErase=true, pBuffer=..., bTopDown=false) at /home/julien/compile-libreoffice/libreoffice/vcl/source/gdi/virdev.cxx:293
    1  0x00002aaab1f6ae54 in VirtualDevice::ImplSetOutputSizePixel(Size const&, bool, boost::shared_array<unsigned char> const&, bool) (this=0x0, rNewSize=Size = {...}, bErase=true, pBuffer=..., bTopDown=false) at /home/julien/compile-libreoffice/libreoffice/vcl/source/gdi/virdev.cxx:396
    2  0x00002aaab1f6b1af in VirtualDevice::SetOutputSizePixel(Size const&, bool) (this=0x0, rNewSize=Size = {...}, bErase=true)
        at /home/julien/compile-libreoffice/libreoffice/vcl/source/gdi/virdev.cxx:444
    3  0x00002aaae650e30f in vclcanvas::SpriteCanvasHelper::updateScreen(bool, bool&) (this=0x69daf50, bUpdateAll=true, io_bSurfaceDirty=@0x69dafe0: true)
        at /home/julien/compile-libreoffice/libreoffice/canvas/source/vcl/spritecanvashelper.cxx:316
    
    So initialize maVDev
    
    Change-Id: I4a79ba6e8f13c4a2bed3127742a9a9c928e133cd
    Reviewed-on: https://gerrit.libreoffice.org/16770
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
    Tested-by: Michael Meeks <michael.meeks at collabora.com>
    Signed-off-by: Michael Meeks <michael.meeks at collabora.com>

diff --git a/canvas/source/vcl/spritecanvashelper.cxx b/canvas/source/vcl/spritecanvashelper.cxx
index 095dae6..e6fa3e7f7 100644
--- a/canvas/source/vcl/spritecanvashelper.cxx
+++ b/canvas/source/vcl/spritecanvashelper.cxx
@@ -177,7 +177,7 @@ namespace vclcanvas
     SpriteCanvasHelper::SpriteCanvasHelper() :
         mpRedrawManager( NULL ),
         mpOwningSpriteCanvas( NULL ),
-        maVDev(),
+        maVDev(VclPtr<VirtualDevice>::Create()),
         maLastUpdate(),
         mbShowFrameInfo( false ),
         mbShowSpriteBounds( false ),


More information about the Libreoffice-commits mailing list