Commit 88fcd819 authored by Martin Tobias Holmedahl Sandsmark's avatar Martin Tobias Holmedahl Sandsmark Committed by Harald Sitter
Browse files

Dumb fix for wrong line position

parent f133de56
......@@ -233,7 +233,7 @@ void RadialMap::Widget::paintExplodedLabels(QPainter &paint) const
}
}
int middleX = targetX - (startY - targetY) / tan(ra);
int middleX = targetX - (tan(ra) > 0 ? (startY - targetY) / tan(ra) : 0);
int textY = startY + lineSpacing;
int textX;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment