mirror of
https://git.freebsd.org/ports.git
synced 2025-06-29 00:20:40 -04:00
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)
11 lines
660 B
C++
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);
|