1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-06-27 11:39:16 +02:00

Preserve the configured path line style when no style is provided in the data

This commit is contained in:
2022-10-07 21:54:39 +02:00
parent 20f4f72999
commit 26d2bc4f5d
4 changed files with 11 additions and 7 deletions

View File

@ -200,7 +200,8 @@ void PathItem::updateWidth()
Qt::PenStyle PathItem::penStyle() const
{
return _useStyle ? Qt::SolidLine : _penStyle;
return (_useStyle && _path.style().style() != Qt::NoPen)
? _path.style().style() : _penStyle;
}
void PathItem::setPenStyle(Qt::PenStyle style)