summaryrefslogtreecommitdiff
path: root/forms/source
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2001-05-28 08:08:06 +0000
committerOcke Janssen <oj@openoffice.org>2001-05-28 08:08:06 +0000
commit4e80ab8ecc5e218925700588b4debef08e816925 (patch)
tree3429a747f6325c553b2bb01264db7184278b8e4f /forms/source
parent9419544759533e24f12f2a7112d54e7e90c332fd (diff)
#86723# use size not the buffersize
Diffstat (limited to 'forms/source')
-rw-r--r--forms/source/component/ImageControl.cxx14
1 files changed, 10 insertions, 4 deletions
diff --git a/forms/source/component/ImageControl.cxx b/forms/source/component/ImageControl.cxx
index 7ce71dc4c9bf..b0c4330f7d60 100644
--- a/forms/source/component/ImageControl.cxx
+++ b/forms/source/component/ImageControl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ImageControl.cxx,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: fs $ $Date: 2001-05-11 10:12:24 $
+ * last change: $Author: oj $ $Date: 2001-05-28 09:08:06 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -287,7 +287,7 @@ void OImageControlModel::_propertyChanged( const PropertyChangeEvent& rEvt )
Reference<XInputStream> xInput
(new ::utl::OInputStreamHelper(new SvLockBytes(pFileStream, sal_True),
- pFileStream->GetBufferSize()));
+ nSize));
xSink->setInputStream(xInput);
Reference<XInputStream> xInStream(xSink, UNO_QUERY);
if (m_xColumnUpdate.is())
@@ -299,7 +299,13 @@ void OImageControlModel::_propertyChanged( const PropertyChangeEvent& rEvt )
}
// usually the setBinaryStream should close the input, but just in case ....
- try { xInStream->closeInput(); } catch (NotConnectedException& e) { e; }
+ try
+ {
+ xInStream->closeInput();
+ }
+ catch (NotConnectedException&)
+ {
+ }
}
else
{