filter/source/svg/svgwriter.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit f492602552a3f70cecf3b323898cf038d6f8ef38
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Sun Feb 6 18:36:12 2022 +0100
Commit:     Szymon Kłos <szymon.k...@collabora.com>
CommitDate: Mon Feb 7 10:42:47 2022 +0100

    Missing initialization of SVGActionWriter::mbIsPreview
    
    ...introduced with f609a16a52f1ac37f1edd297cf1d9e5f2a294724 "lok: render 
image
    preview with lower resolution",
    
    > /filter/source/svg/svgwriter.cxx:2949:9: runtime error: load of value 
190, which is not a valid value for type 'bool'
    >     #0 0x2b2ee3c573d5 in SVGActionWriter::ImplWriteBmp(BitmapEx const&, 
Point const&, Size const&, Point const&, Size const&, 
com::sun::star::uno::Reference<com::sun::star::drawing::XShape> const*) 
/filter/source/svg/svgwriter.cxx:2949:9
    >     #1 0x2b2ee3c3b670 in SVGActionWriter::ImplWriteActions(GDIMetaFile 
const&, unsigned int, rtl::OUString const&, 
com::sun::star::uno::Reference<com::sun::star::drawing::XShape> const*, 
GDIMetaFile const*) /filter/source/svg/svgwriter.cxx:3782:25
    >     #2 0x2b2ee3c5b3a8 in SVGActionWriter::WriteMetaFile(Point const&, 
Size const&, GDIMetaFile const&, unsigned int, rtl::OUString const&, 
com::sun::star::uno::Reference<com::sun::star::drawing::XShape> const*, 
GDIMetaFile const*) /filter/source/svg/svgwriter.cxx:4015:5
    >     #3 0x2b2ee3a86ae2 in 
SVGFilter::implExportShape(com::sun::star::uno::Reference<com::sun::star::drawing::XShape>
 const&, bool) /filter/source/svg/svgexport.cxx:2227:42
    >     #4 0x2b2ee3a7e1e2 in 
SVGFilter::implExportShapes(com::sun::star::uno::Reference<com::sun::star::drawing::XShapes>
 const&, bool) /filter/source/svg/svgexport.cxx:2050:20
    
    during CppunitTest_sd_svg_export_tests
    (<https://ci.libreoffice.org/job/lo_ubsan/2291/>)
    
    Change-Id: Ied5a2cc8599466949f57caae05f9fb90c92266b0
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129582
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129586
    Reviewed-by: Szymon Kłos <szymon.k...@collabora.com>
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>

diff --git a/filter/source/svg/svgwriter.cxx b/filter/source/svg/svgwriter.cxx
index 9677c9e092fd..a336b825120a 100644
--- a/filter/source/svg/svgwriter.cxx
+++ b/filter/source/svg/svgwriter.cxx
@@ -1821,7 +1821,8 @@ SVGActionWriter::SVGActionWriter( SVGExport& rExport, 
SVGFontExport& rFontExport
     mpVDev(VclPtr<VirtualDevice>::Create()),
     mbClipAttrChanged( false ),
     mbIsPlaceholderShape( false ),
-    mpEmbeddedBitmapsMap( nullptr )
+    mpEmbeddedBitmapsMap( nullptr ),
+    mbIsPreview( false )
 {
     mpVDev->EnableOutput( false );
     maTargetMapMode = MapMode(MapUnit::Map100thMM);

Reply via email to