#1205 closed bug (fixed)
No valid projection. Unable to set map units.
Reported by: | jcs | Owned by: | nobody |
---|---|---|---|
Priority: | major: does not work as expected | Milestone: | |
Component: | MapCanvas | Version: | Trunk |
Keywords: | QgsSpatialRefSys | Cc: | msieczka |
Must Fix for Release: | No | Platform: | RedHat |
Platform Version: | Awaiting user input: | no |
Description
A vanilla build of 0.11.0 produces numerous prints of "No valid projection. Unable to set map units."
This is unavoidable and can be seen by following the execution of QgsSpatialRefSys::loadFromDb().
At the top of this function mIsValidFlag is set to false. This variable is only set to true after a call to setMapUnits().
But the first thing setMapUnits() does is check mIsValidFlag which in this case will always be false and the print will be executed.
Moving the mIsValidFlag = true before setMapUnits() fixes the "No valid projection. Unable to set map units." prints but this may not be what the author had in mind.
Change History (3)
comment:1 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 16 years ago
Cc: | added |
---|
fixed in r9071