16675 Commits

Author SHA1 Message Date
Juergen E. Fischer
da0822c588 server: add charset utf-8 to content type of responses in text/ format 2015-02-17 18:27:38 +01:00
Juergen E. Fischer
0954a20373 server: also load layers referenced in value relations (followup ceceebdf9) 2015-02-17 18:26:20 +01:00
Martin Dobias
70a0a6e3af Fix #12151 - fix cached composer map image when zoomed in a lot
The map was being rendered with wrong parameters when width or height
exceeded 5000 pixels.
2015-02-17 20:38:54 +07:00
Juergen E. Fischer
f64730e8d1 workaround to create unique memory layer data sources (fixes #12206) 2015-02-17 14:07:13 +01:00
Martin Dobias
255cbd2c2a Fix #11965 - improve performance of selectedFeatures()
The slowness of merge / split features tools was caused by the change in the logic
in selectedFeatures(): instead of fetching individual features one by one by ID,
the whole layer is traversed. Such approach makes sense when many features are selected,
but with few features there is considerable delay when dealing with big layers.

The implementation is not ideal, but for some common cases the performance is much better.

Merging of features now does not request selected features when not necessary.

When rendering, avoid using layer's extent() method that may force expensive
calculation of layer's extent.
2015-02-17 19:53:19 +07:00
Martin Dobias
ffd7f8a85d Fix #12050 - possible crash on launch
Do not allow infinite recursion setExtent() -> setCenter() -> setExtent()
2015-02-17 18:19:19 +07:00
Nyall Dawson
ca86763690 Avoid large parameter passed by value 2015-02-17 17:05:16 +11:00
Nyall Dawson
cf4c7c6027 Avoid uninitialized member in legend renderer 2015-02-17 17:05:16 +11:00
Nyall Dawson
dc77d5812c Hide logically dead code 2015-02-17 17:05:16 +11:00
Juergen E. Fischer
ceceebdf9b server getfeatureinfo: delegate value representation to editor widgets (fixes #12210) 2015-02-16 21:14:36 +01:00
Juergen E. Fischer
6e773504aa dxf export: fix encoding for japanese (take II; followup ce0fd7a) 2015-02-16 18:02:29 +01:00
Matthias Kuhn
96732bb91c Merge pull request #1901 from m-kuhn/fixrendering
Fix rendering position in incremental rendering
2015-02-16 12:49:29 +01:00
Juergen E. Fischer
b3bd32ff96 server getfeatureinfo: restore quoting in plain/text format 2015-02-16 11:10:25 +01:00
Matthias Kuhn
1144f3e638 Fix rendering position in incremental rendering 2015-02-16 10:28:16 +01:00
Nyall Dawson
e338daf206 Fix misuse of enum in qwt_polar_plot 2015-02-16 20:17:55 +11:00
Juergen E. Fischer
ce0fd7ac8f dxf export: fix encoding for japanese 2015-02-16 08:45:21 +01:00
Nyall Dawson
07ea41f9b9 Grass plugin/provider fixes for Coverity 2015-02-16 16:58:10 +11:00
Nyall Dawson
d3c8837625 Fix uninitialized members 2015-02-16 16:58:10 +11:00
Nyall Dawson
2d8feebbde Some very minor Coverity related fixes 2015-02-16 16:11:57 +11:00
Nyall Dawson
da092bf054 Coverity fixes: uninitialised members 2015-02-16 16:11:57 +11:00
Nyall Dawson
f6d0e70814 Fix memory leaks 2015-02-16 16:11:57 +11:00
Nyall Dawson
c9c15afaa2 Fix null dereference errors 2015-02-16 16:11:57 +11:00
Nyall Dawson
e6f91ca4b2 Avoid string overflow 2015-02-16 16:11:57 +11:00
Nyall Dawson
153dea25e4 Rename variable to make intention clearer 2015-02-16 16:11:57 +11:00
Nyall Dawson
318a7161f5 Coverity fixes - unreachable code 2015-02-16 16:11:57 +11:00
Nyall Dawson
c1fe68c821 Fix big parameter passed by value warnings 2015-02-16 16:11:57 +11:00
Juergen E. Fischer
bca1560e9f remove unused message log viewer flag (follows up followup followup 957f1ac) 2015-02-16 01:16:12 +01:00
Juergen E. Fischer
ca86be7855 dxf export: doxyment more methods 2015-02-15 22:49:18 +01:00
Juergen E. Fischer
d9a1654501 dxf export: make encoding configurable (fixes #11578) 2015-02-15 22:10:17 +01:00
Matthias Kuhn
957f1ac191 Followup followup ff788db
The code was moved. This was just a leftover.
2015-02-15 16:58:03 +01:00
Matthias Kuhn
707e2bda9c Followup ff788db
Commit ff788db unintentionally inverted the meaning of the ifdef check
2015-02-15 16:48:33 +01:00
Juergen E. Fischer
e2e23f0c8e snapping dialog: block signals when reloading snapping options
QgsProject: also apply default when property is not available and not only if
an existing one is invalid

fixes #12192
2015-02-15 13:55:43 +01:00
Nyall Dawson
ccdf452ef4 [raster] Fix unintentional int overflow 2015-02-15 13:40:38 +11:00
Juergen E. Fischer
4a4a70057a fix QgsProject::clearProperties() doxymentation 2015-02-14 21:56:22 +01:00
Juergen E. Fischer
86d08b6c39 restore option to open the attribute table with only currently visible features
to improve performance (actually to make it usable with large tables again).

When used as initial setting in options the open attribute table will have a
fixed spatial filter to the canvas extent when it was opened.  That extent is
also highlighted to indicate the filter.

fixes #10619
2015-02-14 21:45:39 +01:00
Jürgen Fischer
553abbdc01 Merge pull request #1900 from mhugo/fix_spatialite2
[spatialite] Bug fixes
2015-02-14 20:58:41 +01:00
Nyall Dawson
f69e0bbf54 Minor Coverity fixes (null dereference, uninitialised members) 2015-02-14 21:59:00 +11:00
Nyall Dawson
0080f9ef3a Coverity fixes - unchecked return value 2015-02-14 21:35:14 +11:00
Nyall Dawson
8c16daf294 Fix memory leak in PAL labelling engine 2015-02-14 12:47:49 +11:00
Juergen E. Fischer
0a5126052a attribute table filter: consider LongLong numeric too 2015-02-13 17:27:15 +01:00
Juergen E. Fischer
1e9774fdcf qgis server fixes:
* support edit types based on edit widgets (adds qgis_gui dependency; fixes #12091)
* show null values (fixes #12114)
* only quote non-numeric non-null values in feature info
* fix crash on exit
* remove obsolete parser method and debug output
2015-02-13 17:26:29 +01:00
Hugo Mercier
221ba9c336 [spatialite] Fix geometry column name case sensitivity 2015-02-13 15:14:04 +01:00
Juergen E. Fischer
3294505861 fix field calculator when update are allowed and add attribute is not (fixes #11932) 2015-02-13 01:14:14 +01:00
Juergen E. Fischer
065d190d85 improve field conversions (fixes #12004) 2015-02-13 00:07:40 +01:00
Juergen E. Fischer
749e2a5bdb fix runtime warning 2015-02-12 21:34:28 +01:00
Juergen E. Fischer
24c95afd31 fix doxymentation warnings 2015-02-12 21:34:27 +01:00
Nyall Dawson
e96b204b09 Fix failing pal labeling canvas test
Make sure image dpi respects mapsettings dpi in
QgsMapRendererSequentialJob.

Also apply a workaround to avoid segfault on end of test. This
workaround probably should be moved to QgsApplication::exitQgis()
but I'll do that after release in case of regressions.
2015-02-13 06:32:37 +11:00
Larry Shaffer
5273889d45 Enable C++11 only for newer clang versions; match AppleClang for Cmake 3
- Switch STREQUAL conditionals to MATCHES for Clang to handle CMake 3
  introduction of AppleClang compiler ID for Mac-specific Xcode clang,
  which has different reported versions than upstream clang
2015-02-12 09:06:29 -07:00
Juergen E. Fischer
1b252d4a93 fix crash on snapping locator removal 2015-02-12 16:55:59 +01:00
Martin Dobias
3803979b2b Fix #12190 - splitGeometry crashes on linear geometry with a split point 2015-02-12 22:07:23 +07:00