SANKORE-229: Internal application:Compass :Degree label image isn't displayed

preferencesAboutTextFull
Anatoly Mihalchenko 13 years ago
parent 05fc799d64
commit 00f1f768d3
  1. 2
      src/tools/UBGraphicsCompass.cpp
  2. 2
      src/tools/UBGraphicsProtractor.cpp

@ -361,7 +361,7 @@ void UBGraphicsCompass::paintAngleDisplay(QPainter *painter)
qreal angle = angleInDegrees();
qreal angleValue = mDrawing ? - mSpanAngleInDegrees : angle;
QString angleText = QString("%1").arg(angleValue, 0, 'f', 1) + "°";
QString angleText = QString("%1").arg(angleValue, 0, 'f', 1) + "°";
painter->save();
painter->setFont(font());

@ -508,7 +508,7 @@ void UBGraphicsProtractor::paintAngleMarker(QPainter *painter)
if (angle != 0)
{
QString ang = QString("%1°").arg(angle,0, 'f', 1);
QString ang = QString("%1?°").arg(angle,0, 'f', 1);
QFont font2 = painter->font();
font2.setBold(true);
QFontMetricsF fm2(font2);

Loading…
Cancel
Save