Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fix crash when creating QgsStyle in a non-gui application
When the default style tries to populate with default symbols we can ONLY create the text based symbols if a QGuiApplication is available -- otherwise we get a crash when the text symbol tries to access QFontDatabase (which is not available in non-GUI applications)
- Loading branch information
1 parent
298de15
commit 4be828f
Showing
1 changed file
with
70 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters