Make the port build with the upcoming Qt 4.8.1 release.

The QPoint overloads for operator*() were changed in the 4.8.0 release
[1], so we need to add a patch to adjust a cast here.

No PORTREVISION bump since there were no dependency changes and things
are still building fine with Qt 4.7.

[1] a562fd2d20

Approved by:	miwi (Qt 4.8.1 exp-run)
This commit is contained in:
Raphael Kubo da Costa 2012-05-21 17:59:12 +00:00
parent 00f3b6859b
commit fe84807488
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=297133

View File

@ -0,0 +1,11 @@
--- src/fileformats/oasis.cpp~ 2012-05-21 14:29:24.000000000 -0300
+++ src/fileformats/oasis.cpp 2012-05-21 14:42:42.000000000 -0300
@@ -1896,7 +1896,7 @@
element *element_;
pointArray pa;
pa<<QPoint(modal.placement_x,modal.placement_y);
- pa<<QPoint(modal.x_space,modal.y_space)*(modal.x_dimension)+QPoint(modal.placement_x,modal.placement_y);
+ pa<<QPoint(modal.x_space,modal.y_space)*static_cast<double>(modal.x_dimension)+QPoint(modal.placement_x,modal.placement_y);
pa<<QPoint(modal.placement_x,modal.placement_y);
element_=cell_->addCellrefArray(modal.placementCell,pa,modal.x_dimension,1);
element_->setName(modal.placement_cell);