minor fixes SectionFace zOrder, orphan graphics items

This commit is contained in:
WandererFan 2016-09-01 11:38:20 -04:00
parent 7e04c17bdd
commit c0428a940b
2 changed files with 4 additions and 3 deletions

View File

@ -318,7 +318,7 @@ void QGVPage::addDimToParent(QGIViewDimension* dim, QGIView* parent)
QGIView * QGVPage::findView(App::DocumentObject *obj) const
{
if(scene()) {
if(obj) {
const std::vector<QGIView *> qviews = views;
for(std::vector<QGIView *>::const_iterator it = qviews.begin(); it != qviews.end(); ++it) {
TechDraw::DrawView *fview = (*it)->getViewObject();

View File

@ -5,12 +5,13 @@ namespace ZVALUE {
const int TEMPLATE = -1000;
const int SVGTEMPLATE = -500;
const int FACE = 10;
const int SECTIONFACE = 20;
const int HATCH = 30;
const int HIDEDGE = 40;
const int EDGE = 50;
const int VERTEX = 60;
const int SECTIONFACE = 65;
const int SECTIONHATCH = 66;
const int DIMENSION = 70;
const int SECTIONLINE = 80;
const int SECTIONLINE = 80; //TODO: change to "DECORATION"? section lines, symmetry lines, etc?
}
#endif