[Libreoffice-commits] core.git: filter/source
Caolán McNamara
caolanm at redhat.com
Tue Jan 17 16:16:47 UTC 2017
filter/source/graphicfilter/ios2met/ios2met.cxx | 7 -------
1 file changed, 7 deletions(-)
New commits:
commit c057c01af2367ccc6fb542c27d0b99610a44b4ce
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Jan 17 16:16:01 2017 +0000
get rid of crazy
Change-Id: I32fead179bb8c8aa36367a5a85a0bde0bd1b6f1f
diff --git a/filter/source/graphicfilter/ios2met/ios2met.cxx b/filter/source/graphicfilter/ios2met/ios2met.cxx
index b35f5b7..48dde58 100644
--- a/filter/source/graphicfilter/ios2met/ios2met.cxx
+++ b/filter/source/graphicfilter/ios2met/ios2met.cxx
@@ -895,7 +895,6 @@ void OS2METReader::ReadRelLine(bool bGivenPos, sal_uInt16 nOrderLen)
sal_uInt16 i,nPolySize;
Point aP0;
-
if (bGivenPos) {
aP0=ReadPoint();
if (bCoord32) nOrderLen-=8; else nOrderLen-=4;
@@ -905,15 +904,9 @@ void OS2METReader::ReadRelLine(bool bGivenPos, sal_uInt16 nOrderLen)
if (nPolySize==0) return;
tools::Polygon aPolygon(nPolySize);
for (i=0; i<nPolySize; i++) {
-#if defined __sun && defined PPC
- sal_uInt8 nunsignedbyte;
- *pOS2MET >> nunsignedbyte; aP0.X()+=(sal_Int8)nunsignedbyte;
- *pOS2MET >> nunsignedbyte; aP0.Y()+=(sal_Int8)nunsignedbyte;
-#else
sal_Int8 nsignedbyte;
pOS2MET->ReadSChar( nsignedbyte ); aP0.X()+=(long)nsignedbyte;
pOS2MET->ReadSChar( nsignedbyte ); aP0.Y()-=(long)nsignedbyte;
-#endif
aCalcBndRect.Union(Rectangle(aP0,Size(1,1)));
aPolygon.SetPoint(aP0,i);
}
More information about the Libreoffice-commits
mailing list