Skip to content

Commit

Permalink
Fix box selection in sketcher
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Jan 5, 2013
1 parent f4ff92c commit 546ab0f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Mod/Sketcher/Gui/ViewProviderSketch.cpp
Expand Up @@ -1464,12 +1464,8 @@ void ViewProviderSketch::doBoxSelection(const SbVec2s &startPos, const SbVec2s &

Gui::ViewVolumeProjection proj(viewer->getCamera()->getViewVolume());

App::Document* doc = App::GetApplication().getActiveDocument();
Sketcher::SketchObject *sketchObject = NULL;
if (doc)
sketchObject = dynamic_cast<Sketcher::SketchObject *>(doc->getActiveObject());
if (!sketchObject)
return;
Sketcher::SketchObject *sketchObject = getSketchObject();
App::Document *doc = sketchObject->getDocument();

Base::Placement Plm = sketchObject->Placement.getValue();

Expand Down

0 comments on commit 546ab0f

Please sign in to comment.