fix Coverity issues

This commit is contained in:
wmayer
2016-08-21 14:44:14 +02:00
parent 0824c5fd3c
commit 9459938cdc
2 changed files with 27 additions and 12 deletions

View File

@@ -343,7 +343,7 @@ void CmdDrawingNewView::activated(int iMsg)
float newRotation = 0.0;
Base::Vector3d newDirection(0.0, 0.0, 1.0);
if (!selectedProjections.empty()) {
const Drawing::FeatureView* const myView = dynamic_cast<Drawing::FeatureView*>(selectedProjections.front());
const Drawing::FeatureView* const myView = static_cast<Drawing::FeatureView*>(selectedProjections.front());
newX = myView->X.getValue();
newY = myView->Y.getValue();