From 2c18e662795370cd124cd30b5bca171f2ab09d76 Mon Sep 17 00:00:00 2001 From: jghali Date: Wed, 15 Feb 2012 22:53:59 +0000 Subject: fix for broken arm build patch git-svn-id: svn://scribus.net/branches/Version14x/Scribus@17307 11d20701-8431-0410-a711-e3c959e3b870 --- scribus/pageitem.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'scribus/pageitem.cpp') diff --git a/scribus/pageitem.cpp b/scribus/pageitem.cpp index 56a6451..7c2fffe 100644 --- a/scribus/pageitem.cpp +++ b/scribus/pageitem.cpp @@ -4829,7 +4829,11 @@ void PageItem::getBoundingRect(double *x1, double *y1, double *x2, double *y2) c FPoint maxAr = getMaxClipF(&arrow); totalRect = totalRect.united(QRectF(QPointF(minAr.x(), minAr.y()), QPointF(maxAr.x(), maxAr.y()))); } - totalRect.getCoords((qreal*)x1, (qreal*)y1, (qreal*)x2, (qreal*)y2); + + qreal rx1, ry1, rx2, ry2; + totalRect.getCoords(&rx1, &ry1, &rx2, &ry2); + *x1 = rx1; *y1 = ry1; + *x2 = rx2; *y2 = ry2; } void PageItem::getVisualBoundingRect(double * x1, double * y1, double * x2, double * y2) const @@ -4989,7 +4993,11 @@ void PageItem::getVisualBoundingRect(double * x1, double * y1, double * x2, doub FPoint maxAr = getMaxClipF(&arrow); totalRect = totalRect.united(QRectF(QPointF(minAr.x(), minAr.y()), QPointF(maxAr.x(), maxAr.y()))); } - totalRect.getCoords((qreal*)x1, (qreal*)y1, (qreal*)x2, (qreal*)y2); + + qreal rx1, ry1, rx2, ry2; + totalRect.getCoords(&rx1, &ry1, &rx2, &ry2); + *x1 = rx1; *y1 = ry1; + *x2 = rx2; *y2 = ry2; } double PageItem::visualXPos() const -- cgit