Remove Surplus VP properties

- color, size and font info are embedded in the rich text
This commit is contained in:
wandererfan
2019-05-17 13:23:44 -04:00
committed by WandererFan
parent 32a1e35b17
commit f47422d366
4 changed files with 3 additions and 62 deletions

View File

@@ -224,15 +224,6 @@ void QGIRichAnno::setTextItem()
{
// Base::Console().Message("QGIRA::setTextItem() - %s\n",getViewName());
TechDraw::DrawRichAnno* annoFeat = getFeature();
auto vp = static_cast<ViewProviderRichAnno*>(getViewProvider(annoFeat));
if ( vp == nullptr ) {
Base::Console().Log("QGIRA::setTextItem - no ViewProvider\n");
return;
}
QFont font = m_text->font();
font.setPointSizeF(Rez::guiX(vp->Fontsize.getValue()));
font.setFamily(QString::fromLatin1(vp->Font.getValue()));
m_text->setFont(font);
//convert point font sizes to (Rez,mm) font sizes
QRegExp rxFontSize(QString::fromUtf8("font-size:([0-9]*)pt;"));