aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cad/layouteditor/files/patch-src__fileformats__oasis.cpp11
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);