DrawViewSymbol forgets Scale on restore

This commit is contained in:
WandererFan
2016-07-12 15:20:08 -04:00
parent 3dec1bd3b6
commit 21689507ea
3 changed files with 12 additions and 6 deletions

View File

@@ -89,7 +89,6 @@ void QGIViewSymbol::updateView(bool update)
}
if (viewSymbol->Scale.isTouched()) {
setScale(viewSymbol->Scale.getValue());
draw();
}
@@ -102,6 +101,10 @@ void QGIViewSymbol::draw()
return;
}
//note: svg's are overscaled by (72 pixels(pts actually) /in)*(1 in/25.4 mm) = 2.834645669 (could be 96/25.4(CSS)? 110/25.4?)
//due to 1 sceneUnit (1mm) = 1 pixel for some QtSvg functions
TechDraw::DrawViewSymbol *viewSymbol = dynamic_cast<TechDraw::DrawViewSymbol *>(getViewObject());
setScale(viewSymbol->Scale.getValue());
drawSvg();
if (borderVisible) {
drawBorder();