Fix Bad View Position on Add to Clip
This commit is contained in:
@@ -23,23 +23,10 @@
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <cmath>
|
||||
#include <QGraphicsScene>
|
||||
#include <QMouseEvent>
|
||||
#include <QGraphicsSceneHoverEvent>
|
||||
#include <QGraphicsItem>
|
||||
#include <QStyleOptionGraphicsItem>
|
||||
#include <QGraphicsTextItem>
|
||||
#include <QPainterPathStroker>
|
||||
#include <QPainter>
|
||||
#include <QString>
|
||||
#include <QTextOption>
|
||||
#include <sstream>
|
||||
#include <algorithm> // std::find
|
||||
#include <QGraphicsScene>
|
||||
#endif
|
||||
|
||||
#include <qmath.h>
|
||||
|
||||
#include <App/Application.h>
|
||||
#include <App/Material.h>
|
||||
#include <Base/Console.h>
|
||||
@@ -90,7 +77,8 @@ void QGIViewClip::updateView(bool update)
|
||||
viewClip->isTouched() ||
|
||||
viewClip->Height.isTouched() ||
|
||||
viewClip->Width.isTouched() ||
|
||||
viewClip->ShowFrame.isTouched()) {
|
||||
viewClip->ShowFrame.isTouched() ||
|
||||
viewClip->Views.isTouched() ) {
|
||||
|
||||
draw();
|
||||
}
|
||||
|
||||
@@ -63,7 +63,8 @@ void ViewProviderViewClip::updateData(const App::Property* prop)
|
||||
if (prop == &(getViewObject()->Height) ||
|
||||
prop == &(getViewObject()->Width) ||
|
||||
prop == &(getViewObject()->ShowFrame) ||
|
||||
prop == &(getViewObject()->ShowLabels) ) {
|
||||
prop == &(getViewObject()->ShowLabels) ||
|
||||
prop == &(getViewObject()->Views) ) {
|
||||
// redraw QGIVP
|
||||
QGIView* qgiv = getQView();
|
||||
if (qgiv) {
|
||||
|
||||
Reference in New Issue
Block a user