diff options
author | rakuco <rakuco@FreeBSD.org> | 2012-05-22 01:59:12 +0800 |
---|---|---|
committer | rakuco <rakuco@FreeBSD.org> | 2012-05-22 01:59:12 +0800 |
commit | c31ec0383466c08c68837252a05b0e0330ba8ae9 (patch) | |
tree | 585e288d737971ab011e4093a92ccc302126dd6c /cad | |
parent | 649f0019cdbcbf0f81dca7e38bb147f87f1a34fd (diff) | |
download | freebsd-ports-gnome-c31ec0383466c08c68837252a05b0e0330ba8ae9.tar.gz freebsd-ports-gnome-c31ec0383466c08c68837252a05b0e0330ba8ae9.tar.zst freebsd-ports-gnome-c31ec0383466c08c68837252a05b0e0330ba8ae9.zip |
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] http://qt.gitorious.org/qt/qt/commit/a562fd2d201e3b618ed99a316275f20385cc5c25
Approved by: miwi (Qt 4.8.1 exp-run)
Diffstat (limited to 'cad')
-rw-r--r-- | cad/layouteditor/files/patch-src__fileformats__oasis.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cad/layouteditor/files/patch-src__fileformats__oasis.cpp b/cad/layouteditor/files/patch-src__fileformats__oasis.cpp new file mode 100644 index 000000000000..3b858f11df0d --- /dev/null +++ b/cad/layouteditor/files/patch-src__fileformats__oasis.cpp @@ -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); |