]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
GraphicsView: invert the Y axis direction from down to up.
authorouv <ouv@opencascade.com>
Fri, 4 Oct 2013 11:29:46 +0000 (11:29 +0000)
committerouv <ouv@opencascade.com>
Fri, 4 Oct 2013 11:29:46 +0000 (11:29 +0000)
src/HYDROGUI/HYDROGUI_Shape.cxx

index 6bc515f38564a422d5802dd5da56a8efd0bb4cdd..9d7ca4da573d55b4bf232d9a0a3162a404dff001 100644 (file)
@@ -141,7 +141,7 @@ void HYDROGUI_Shape::update( const bool theIsUpdateViewer )
       int aHeight = anImage.height();
 
       QTransform anInversion = QTransform::fromScale( -1, -1 );
-      anImage = anImage.transformed( anYInversion * aTrsf, Qt::SmoothTransformation );
+      anImage = anImage.transformed( anInversion * aTrsf, Qt::SmoothTransformation );
 
       // temporary optimization, to reduce the saved image size (and the texture quality)
       QImage anImageToSave = reduceTexture( anImage, 500 );