[Libreoffice-commits] core.git: extensions/source
Rohan Kumar
rohankanojia420 at gmail.com
Mon Apr 18 08:26:29 UTC 2016
extensions/source/scanner/sanedlg.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 0ef6945b494ee86ed601fb9b09613cb4825040b1
Author: Rohan Kumar <rohankanojia420 at gmail.com>
Date: Mon Apr 18 13:56:56 2016 +0530
Fix unconditional seek in sanedlg
I fixed my previous mistake of keeping that
xTransporter->getStream().Seek( STREAM_SEEK_TO_END );
in live code by wrapping it under OSL_DEBUG_LEVEL > 0 .
Change-Id: I3f3bd3308e90610ab3d14f112e4da8bf46ecd25c
Reviewed-on: https://gerrit.libreoffice.org/24188
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
Tested-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/extensions/source/scanner/sanedlg.cxx b/extensions/source/scanner/sanedlg.cxx
index 34ed684..bb21e1e 100644
--- a/extensions/source/scanner/sanedlg.cxx
+++ b/extensions/source/scanner/sanedlg.cxx
@@ -905,8 +905,10 @@ void SaneDlg::AcquirePreview()
}
else
{
+#if OSL_DEBUG_LEVEL > 0
xTransporter->getStream().Seek( STREAM_SEEK_TO_END );
SAL_INFO("extensions.scanner", "Previewbitmapstream contains " << xTransporter->getStream().Tell() << "bytes");
+#endif
xTransporter->getStream().Seek( STREAM_SEEK_TO_BEGIN );
mpPreview->SetBitmap(xTransporter->getStream());
}
More information about the Libreoffice-commits
mailing list