[TD]fix Rotation not applied
This commit is contained in:
committed by
WandererFan
parent
78c22e33de
commit
9194d5c596
@@ -105,6 +105,7 @@ App::DocumentObjectExecReturn *DrawView::execute(void)
|
||||
handleXYLock();
|
||||
//should not be necessary to purgeTouched here, but it prevents a superfluous feature recompute
|
||||
purgeTouched(); //this should not be necessary!
|
||||
requestPaint();
|
||||
return App::DocumentObject::execute();
|
||||
}
|
||||
|
||||
|
||||
@@ -409,7 +409,7 @@ QPainterPath QGIViewPart::geomToPainterPath(BaseGeomPtr baseGeom, double rot)
|
||||
|
||||
void QGIViewPart::updateView(bool update)
|
||||
{
|
||||
// Base::Console().Message("QGIVP::updateView()\n");
|
||||
// Base::Console().Message("QGIVP::updateView() - %s\n", getViewObject()->getNameInDocument());
|
||||
auto viewPart( dynamic_cast<TechDraw::DrawViewPart *>(getViewObject()) );
|
||||
if( viewPart == nullptr ) {
|
||||
return;
|
||||
|
||||
@@ -214,14 +214,6 @@ void ViewProviderDrawingView::finishRestoring()
|
||||
|
||||
void ViewProviderDrawingView::updateData(const App::Property* prop)
|
||||
{
|
||||
//redrawn the whole view on Rotation change
|
||||
if (prop == &(getViewObject()->Rotation)) {
|
||||
QGIView* qgiv = getQView();
|
||||
if (qgiv) {
|
||||
qgiv->updateView(true);
|
||||
}
|
||||
}
|
||||
|
||||
//only move the view on X,Y change
|
||||
if (prop == &(getViewObject()->X) ||
|
||||
prop == &(getViewObject()->Y) ){
|
||||
|
||||
Reference in New Issue
Block a user