[TD] Add a comment about QGIViewBalloon.cpp draw() function needing refactoring.

This commit is contained in:
Aapo
2020-12-07 23:48:28 +02:00
parent 6670197fad
commit a421a35f1f

View File

@@ -765,6 +765,7 @@ void QGIViewBalloon::draw()
dLinePath.lineTo(arrowTipX - xAdj, arrowTipY - yAdj);
balloonLines->setPath(dLinePath);
// This overwrites the previously created QPainterPath with empty one, in case it should be hidden. Should be refactored.
if (!balloon->LineVisible.getValue()) {
arrow->hide();
balloonLines->setPath(QPainterPath());