summaryrefslogtreecommitdiff
path: root/drawinglayer
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2019-04-24 13:46:03 +0200
committerLuboš Luňák <l.lunak@collabora.com>2019-04-30 13:52:25 +0200
commit37874c29b0d266b7a49978ce68a4909bc6e50fcd (patch)
treede96330606db9f39f4184e7f1e42a36f8379f9bb /drawinglayer
parent6e07375f92f79959cc9288bb2a3b237b480e952c (diff)
make debug code work properly also on non-win32
Change-Id: I5ccf6b079ef8b6a341d06627e4b0abc9d90e0f8b Reviewed-on: https://gerrit.libreoffice.org/71566 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'drawinglayer')
-rw-r--r--drawinglayer/source/tools/converters.cxx24
1 files changed, 21 insertions, 3 deletions
diff --git a/drawinglayer/source/tools/converters.cxx b/drawinglayer/source/tools/converters.cxx
index 3f601f84d47a..010f71810c30 100644
--- a/drawinglayer/source/tools/converters.cxx
+++ b/drawinglayer/source/tools/converters.cxx
@@ -100,7 +100,13 @@ namespace drawinglayer
#ifdef DBG_UTIL
if(bDoSaveForVisualControl)
{
- SvFileStream aNew("c:\\test_content.png", StreamMode::WRITE|StreamMode::TRUNC);
+ SvFileStream aNew(
+#ifdef _WIN32
+ "c:\\test_content.png"
+#else
+ "~/test_content.png"
+#endif
+ , StreamMode::WRITE|StreamMode::TRUNC);
BitmapEx aContentEx(aContent);
vcl::PNGWriter aPNGWriter(aContentEx);
aPNGWriter.Write(aNew);
@@ -131,7 +137,13 @@ namespace drawinglayer
#ifdef DBG_UTIL
if(bDoSaveForVisualControl)
{
- SvFileStream aNew("c:\\test_alpha.png", StreamMode::WRITE|StreamMode::TRUNC);
+ SvFileStream aNew(
+#ifdef _WIN32
+ "c:\\test_alpha.png"
+#else
+ "~/test_alpha.png"
+#endif
+ , StreamMode::WRITE|StreamMode::TRUNC);
BitmapEx aAlphaEx(aAlpha);
vcl::PNGWriter aPNGWriter(aAlphaEx);
aPNGWriter.Write(aNew);
@@ -143,7 +155,13 @@ namespace drawinglayer
#ifdef DBG_UTIL
if(bDoSaveForVisualControl)
{
- SvFileStream aNew("c:\\test_combined.png", StreamMode::WRITE|StreamMode::TRUNC);
+ SvFileStream aNew(
+#ifdef _WIN32
+ "c:\\test_combined.png"
+#else
+ "~/test_combined.png"
+#endif
+ , StreamMode::WRITE|StreamMode::TRUNC);
vcl::PNGWriter aPNGWriter(aRetval);
aPNGWriter.Write(aNew);
}