diff --git a/src/Gui/DlgSettings3DViewImp.cpp b/src/Gui/DlgSettings3DViewImp.cpp index 7c2fe64beb..93c58eb16a 100644 --- a/src/Gui/DlgSettings3DViewImp.cpp +++ b/src/Gui/DlgSettings3DViewImp.cpp @@ -383,10 +383,11 @@ void CameraDialog::on_currentView_clicked() View3DInventor* mdi = qobject_cast(getMainWindow()->activeWindow()); if (mdi) { SbRotation rot = mdi->getViewer()->getCameraOrientation(); - sb0->setValue(rot[0]); - sb1->setValue(rot[1]); - sb2->setValue(rot[2]); - sb3->setValue(rot[3]); + const float* q = rot.getValue(); + sb0->setValue(q[0]); + sb1->setValue(q[1]); + sb2->setValue(q[2]); + sb3->setValue(q[3]); } }