ports/cad/layouteditor/files/patch-src__fileformats__oasis.cpp
Raphael Kubo da Costa fe84807488 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)
2012-05-21 17:59:12 +00:00

11 lines
660 B
C++

--- 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);