Kaydet (Commit) 0ef6945b authored tarafından Rohan Kumar's avatar Rohan Kumar Kaydeden (comit) Stephan Bergmann

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/24188Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
Tested-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 789055bc
......@@ -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());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment