summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/appmisc.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/appl/appmisc.cxx')
-rw-r--r--sfx2/source/appl/appmisc.cxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/sfx2/source/appl/appmisc.cxx b/sfx2/source/appl/appmisc.cxx
index 0e84d5d1e90d..d96568b825a5 100644
--- a/sfx2/source/appl/appmisc.cxx
+++ b/sfx2/source/appl/appmisc.cxx
@@ -138,7 +138,16 @@ bool SfxApplication::loadBrandSvg(const char *pName, BitmapEx &rBitmap, int nWid
if ( !FileExists(aObj) )
return false;
- VectorGraphicData aVectorGraphicData(aObj.PathToFileName(), VectorGraphicDataType::Svg);
+ // Read the SVG file
+ SvFileStream aStream(aObj.PathToFileName(), StreamMode::STD_READ);
+ if (aStream.GetError())
+ return false;
+
+ BinaryDataContainer aDataContainer(aStream, aStream.remainingSize());
+ if (aStream.GetError())
+ return false;
+
+ VectorGraphicData aVectorGraphicData(aDataContainer, VectorGraphicDataType::Svg);
// transform into [0,0,width,width*aspect] std dimensions