You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BugEither a bug report, or a bug fix. Let's hope for the latter!FeedbackWaiting on the submitter for answersGUI/UXRelated to QGIS application GUI or User Experience
This problem seems to be caused by a (possibly) logical error in QgsSymbol::bigSymbolPreviewImage
The QgsUnitTypes::RenderUnit of the Layer is being used instead of QgsUnitTypes::RenderMillimeters.
!updatePreview.all.Original.png!
The QgsDistanceArea being used is not based on the Layer being used.
Thus when this runs, MapUnits are assumed to be in Degrees, RenderMetersInMapUnits (a value given in Meters) is transformed into degrees. So for the given 5.1 Meters: 0.00000458141 is bing used - which cannot be seen.
This seems to also to effect Icons being shown for the 'Simple marker' and in the Layer Panel.
For QgsSymbol::bigSymbolPreviewImage, this is simple to resolve
save the OutputUnit of the class (which renderPolyline, renderPolygon and renderPoint use)
setOutputUnit( QgsUnitTypes::RenderMillimeters);
restore the original value of the OutputUnit.
I was hoping to do the same for QgsSymbol::drawPreviewIcon, but that did not work.
so this problem is still open.
A pull request is being made for the first solution with a reference to this issue.
11180 was configured as updatePreview.all.Original.png
BugEither a bug report, or a bug fix. Let's hope for the latter!FeedbackWaiting on the submitter for answersGUI/UXRelated to QGIS application GUI or User Experience
Author Name: Mark Johnson (Mark Johnson)
Original Redmine Issue: 16866
Affected QGIS version: master
Redmine category:gui
For the implementation of RenderMetersInMapUnits, one aspect has been overlooked:
Otherwise everything seems to work as expected.
For the 'designing' if the Symbol to be shown this should be considered important.
I assume that something similar must be done as in QgsRenderContext::convertToMapUnits
!MetersInMapUnits.Scale_050.png!
The text was updated successfully, but these errors were encountered: