[Libreoffice-commits] core.git: drawinglayer/source
Luboš Luňák (via logerrit)
logerrit at kemper.freedesktop.org
Tue Apr 30 11:53:41 UTC 2019
drawinglayer/source/tools/converters.cxx | 24 +++++++++++++++++++++---
1 file changed, 21 insertions(+), 3 deletions(-)
New commits:
commit 37874c29b0d266b7a49978ce68a4909bc6e50fcd
Author: Luboš Luňák <l.lunak at collabora.com>
AuthorDate: Wed Apr 24 13:46:03 2019 +0200
Commit: Luboš Luňák <l.lunak at collabora.com>
CommitDate: Tue Apr 30 13:52:25 2019 +0200
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 at collabora.com>
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);
}
More information about the Libreoffice-commits
mailing list