Commit 21df625
committed
Fix incorrect project CRS when loading project (fix #16149)
This commit fixes a situation where loading a project results
in incorrect project & canvas CRS. The bug is trigerred whenever
something in the project load calls a processEvents() call, eg
restoring a project with layer count enabled on a layer
or with a composer html item.
When this occurs, the "auto-set CRS to first added layer" code
would kick in early and replace the project's CRS with that
of the first layer loaded.
To avoid this disable the "auto-set CRS" code when loading
layers from a project.1 parent b8fd1fd commit 21df625
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5191 | 5191 | | |
5192 | 5192 | | |
5193 | 5193 | | |
| 5194 | + | |
| 5195 | + | |
| 5196 | + | |
5194 | 5197 | | |
5195 | 5198 | | |
5196 | 5199 | | |
| |||
5307 | 5310 | | |
5308 | 5311 | | |
5309 | 5312 | | |
| 5313 | + | |
| 5314 | + | |
| 5315 | + | |
5310 | 5316 | | |
5311 | 5317 | | |
5312 | 5318 | | |
| |||
0 commit comments