diff --git a/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/InstrumentWindow.cpp b/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/InstrumentWindow.cpp index 2a9349dd8722928c40e6b2aac710e2b4f2fe8e21..68cc0e6b6e394dcf573ed60022dccda45e983a7c 100644 --- a/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/InstrumentWindow.cpp +++ b/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/InstrumentWindow.cpp @@ -279,7 +279,7 @@ void InstrumentWindow::tabChanged(int i) if (surface) { setInfoText(surface->getInfoText()); - m_InstrumentDisplay->refreshView(); + //m_InstrumentDisplay->refreshView(); } } diff --git a/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/Projection3D.cpp b/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/Projection3D.cpp index a85826bed76ad1deda54047a5869faa525c2103f..f305d5b41bee1a62011e6f29cb55c37cc12ed570 100644 --- a/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/Projection3D.cpp +++ b/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/Projection3D.cpp @@ -204,24 +204,26 @@ void Projection3D::mousePressEventMove(QMouseEvent* event) void Projection3D::mouseMoveEventMove(QMouseEvent* event) { + m_viewChanged = false; if (event->buttons() & Qt::LeftButton) { m_trackball->generateRotationTo(event->x(),event->y()); m_trackball->initRotationFrom(event->x(),event->y()); + m_viewChanged = true; } else if(event->buttons() & Qt::RightButton) { //Translate m_trackball->generateTranslationTo(event->x(),event->y()); m_trackball->initTranslateFrom(event->x(),event->y()); + m_viewChanged = true; } else if(event->buttons() & Qt::MidButton) { //Zoom m_trackball->generateZoomTo(event->x(),event->y()); m_trackball->initZoomFrom(event->x(),event->y()); + m_viewChanged = true; } - m_viewChanged = true; -// } - OpenGLError::check("GL3DWidget::mouseMoveEvent"); + OpenGLError::check("GL3DWidget::mouseMoveEvent"); } void Projection3D::mouseReleaseEventMove(QMouseEvent*)