Feature request #68
No value is shown in Measure Distance/Area
|Pull Request or Patch supplied:||Resolution:||worksforme|
|Easy fix?:||No||Copied to github as #:||10127|
In Measure Distance window no total value is shown. The same issue occurs in Measure Area.
#3 Updated by Gavin Macaulay - over 14 years ago
Can you add the following line to the beginning of the formatDistance() function in src/gui/qgsmeasure.cpp, recompile, run qgis, load your data and use the measure line tool, and then tell use you get on the console?
std::cerr << distance << '\ ';
This should tell me whether the problem is in the calculation of the length or in the display of the length.
#4 Updated by Redmine Admin about 14 years ago
I've done, what you said and it seems that
distance and also
mTotal values are calculated properly and there is problem to display them. Even if I put to
editTotal some string explicitly nothing was displayed. This led me to check if there is some problem with font rendering. When I set
Sans Serif font in
qgismeasurebase.ui (with Qt Designer) and then rebuild, the problem disapperared. Yuppiii, wow...
I've attached patch which resolves my problem (it only sets Sans Serif font in
Conclusion: In UI should be set the most common fonts (to avoid similar issues)