Skip to content

Commit

Permalink
Always add CoOrdinateSystem values if they are different from default.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Dec 6, 2015
1 parent c9ad9e9 commit 479c5c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OMEdit/OMEditGUI/Modeling/ModelWidgetContainer.cpp
Expand Up @@ -1179,7 +1179,7 @@ void GraphicsView::addClassAnnotation()
qreal y1 = extent.at(0).y();
qreal x2 = extent.at(1).x();
qreal y2 = extent.at(1).y();
if (x1 != -100 && y1 != -100 && x1 != 100 && y2 != 100) {
if (x1 != -100 || y1 != -100 || x1 != 100 || y2 != 100) {
coOrdinateSystemList.append(QString("extent={{%1, %2}, {%3, %4}}").arg(x1).arg(y1).arg(x2).arg(y2));
}
// add the preserveAspectRatio
Expand All @@ -1192,7 +1192,7 @@ void GraphicsView::addClassAnnotation()
}
// add the grid
QPointF grid = mCoOrdinateSystem.getGrid();
if (grid.x() != 2 && grid.y() != 2) {
if (grid.x() != 2 || grid.y() != 2) {
coOrdinateSystemList.append(QString("grid={%1, %2}").arg(grid.x()).arg(grid.y()));
}
// graphics annotations
Expand Down

0 comments on commit 479c5c9

Please sign in to comment.