Skip to content

Commit

Permalink
Improvements and fixes for drawing holds.
Browse files Browse the repository at this point in the history
  • Loading branch information
albar965 committed Jul 20, 2019
1 parent 9f138cd commit 48ff9dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/mappainter/mappainter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,8 @@ void MapPainter::paintHoldWithText(QPainter *painter, float x, float y, float di

painter->save();
painter->setPen(textColor);
painter->setBrush(textColorBackground);
painter->setBackgroundMode(Qt::OpaqueMode);
painter->setBackground(textColorBackground);

QFontMetrics metrics = painter->fontMetrics();
Expand Down
3 changes: 1 addition & 2 deletions src/mappainter/mappaintermark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -957,8 +957,7 @@ void MapPainterMark::paintHolds(const PaintContext *context)
const QList<Hold>& holds = mapPaintWidget->getHolds();
float lineWidth = context->szF(context->thicknessRangeDistance, 3);
context->szFont(context->textSizeRangeDistance);

const static QVector<float> inboundArrows({0.80f}), outboundArrows({0.80f});
bool detail = context->mapLayer->isApproachTextAndDetail();

for(const Hold& hold : holds)
{
Expand Down

0 comments on commit 48ff9dd

Please sign in to comment.