[Libreoffice-commits] core.git: Branch 'libreoffice-4-4' - sc/source
Markus Mohrhard
markus.mohrhard at googlemail.com
Tue Dec 9 04:48:43 PST 2014
sc/source/filter/inc/xlescher.hxx | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
New commits:
commit 58277b4039d7cbdcc4a2de11bd16b9d09d825bc4
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Tue Dec 9 13:46:17 2014 +0100
fdo#82312 - Excel chart has a wrong size
bug introduced in commit 0c7f35277575fee8594737f5b2842dfac2c6d04f
"remove SvStream::operator>> methods"
Change-Id: I72a1c05b3a4a3f3a250055775eb2d35b3114406d
Reviewed-on: https://gerrit.libreoffice.org/13151
Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
diff --git a/sc/source/filter/inc/xlescher.hxx b/sc/source/filter/inc/xlescher.hxx
index a97882d..90ef41c 100644
--- a/sc/source/filter/inc/xlescher.hxx
+++ b/sc/source/filter/inc/xlescher.hxx
@@ -321,6 +321,26 @@ inline SvStream& operator>>( SvStream& rStrm, XclObjAnchor& rAnchor )
return rStrm;
}
+// creates read method for XclImpStream
+template< typename StreamType >
+StreamType& operator>>( StreamType& rStrm, XclObjAnchor& rAnchor )
+{
+ sal_uInt16 tmpFirstRow, tmpTY, tmpLastRow, tmpBY;
+
+ rStrm
+ >> rAnchor.maFirst.mnCol >> rAnchor.mnLX
+ >> tmpFirstRow >> tmpTY
+ >> rAnchor.maLast.mnCol >> rAnchor.mnRX
+ >> tmpLastRow >> tmpBY;
+
+ rAnchor.maFirst.mnRow = static_cast<sal_uInt32> (tmpFirstRow);
+ rAnchor.mnTY = static_cast<sal_uInt32> (tmpTY);
+ rAnchor.maLast.mnRow = static_cast<sal_uInt32> (tmpLastRow);
+ rAnchor.mnBY = static_cast<sal_uInt32> (tmpBY);
+
+ return rStrm;
+}
+
template< typename StreamType >
StreamType& operator<<( StreamType& rStrm, const XclObjAnchor& rAnchor )
{
More information about the Libreoffice-commits
mailing list