[TechDraw] Simplify return logic
Easy warmup
This commit is contained in:
committed by
WandererFan
parent
122ab14d92
commit
70c9cf0fc0
@@ -796,15 +796,13 @@ int MRichTextEdit::getDefFontSizeNum()
|
||||
// double mmToPts = 2.83; //theoretical value
|
||||
double mmToPts = 2.00; //practical value. seems to be reasonable for common fonts.
|
||||
|
||||
int ptsSize = round(fontSize * mmToPts);
|
||||
return ptsSize;
|
||||
return round(fontSize * mmToPts);
|
||||
}
|
||||
|
||||
QString MRichTextEdit::getDefFontSize()
|
||||
{
|
||||
// Base::Console().Message("MRTE::getDefFontSize()\n");
|
||||
QString result = QString::number(getDefFontSizeNum());
|
||||
return result;
|
||||
return QString::number(getDefFontSizeNum());
|
||||
}
|
||||
|
||||
//not used.
|
||||
|
||||
Reference in New Issue
Block a user