29084 Commits

Author SHA1 Message Date
Nyall Dawson
1aefa17fbd Update TestQgsLabelingEngineV2 to use render checker, reenable on Travis 2015-10-12 18:38:29 +11:00
Nyall Dawson
ecbd691ca4 Followup 8e2b791, add unit test 2015-10-12 09:14:20 +11:00
Juergen E. Fischer
15af5a1170 attribute editing: don't allow editing without ChangeAttributeValues capability 2015-10-11 23:48:20 +02:00
Nyall Dawson
84dade97f6 Fix potential crash in vector gradient dialog info button
Note that this doesn't seem to be actually utilised by any
of the preinstalled gradients, but if users have created
a gradient with info then clicking the button would have
crashed QGIS.

Identified by clazy.
2015-10-12 08:40:51 +11:00
Nyall Dawson
f9231df1f1 Followup a721752, also fix svg marker fill cannot be used with
categorised or graduated renderers
2015-10-12 07:49:41 +11:00
Nyall Dawson
06c2190e3d Remove default outline-width param from included SVGs if
default value is non 0

using the monstrosity:
zerowidth='!0'; grep -R -rl -P "\"param\(outline-width\) (?${zerowidth})(.*?)\"" | xargs sed -i -b 's/\(param(outline-width)\)[^"]*"/\1\"/g'

(fix #10908)
2015-10-12 07:49:41 +11:00
Nyall Dawson
be6faef0fc Remove default outline param from included SVG files if default is #000
using:
grep -R -rl \"param\(outline\)[[:space:]]*#000\" | xargs sed -i -b 's/\(param(outline)\)\s*#000"/\1\"/g'

(refs #10908)
2015-10-12 07:49:41 +11:00
Nyall Dawson
66e6f399c4 Remove default fill param from included SVG files if default is #FFF
using:
grep -R -rl \"param\(fill\)[[:space:]]*#FFF\" | xargs sed -i -b 's/\(param(fill)\)\s*#FFF"/\1\"/g'

(refs #10908)
2015-10-12 07:49:41 +11:00
Juergen E. Fischer
8e2b791092 case-sensitivity of vector layer field (fixes #13032)
* fieldNameIndex: resort to case-insensitive lookup only if
  case-sensitive lookup has no match
* file writer: fix handling of fields that only differ by case
2015-10-11 22:42:28 +02:00
Juergen E. Fischer
d277dd6784 clear cached wkb after reshape (fixes #13052) 2015-10-11 21:53:48 +02:00
Nyall Dawson
a784d6bc3d If svg files with params do not have a default value set, then don't
reset the fill/border color and border width when changing svg
marker/svg fill SVG files

This change makes the behaviour consistent between the svg marker
symbol and the other marker symbols. Additionally, svg files
which have customisable colors and NO default values set will
be shaded in gray fill/black outline in the svg selector widget,
to follow the same behaviour as the other marker symbol selectors.

Note that this change has NO EFFECT unless the svg files are
modified to remove the default param value, so there will be no
change for users' custom symbols. A follow up commit will need
to remove the default param values from the preinstalled SVG
files though. If you want to test in the meantime, I've modified
just the first two symbols in the accomodation group to make
this change for testing.

(refs #10908)
2015-10-11 23:00:01 +11:00
Nyall Dawson
1bd2a69f9b Fix svg marker colors not correctly restored from project 2015-10-11 22:13:22 +11:00
Nyall Dawson
3aa6c4f012 Fix fill and outline color for svg markers sometimes enabled
when SVG file does not support parameters
2015-10-11 21:55:09 +11:00
Nyall Dawson
9287ee7d40 [console] Move run button earlier in console editor toolbar
Otherwise on small screens the run button is hidden away in the
overflow menu, which isn't ideal given its importance
2015-10-11 16:36:10 +11:00
Juergen E. Fischer
cf0fe9a99c fix warnings 2015-10-10 22:25:13 +02:00
Juergen E. Fischer
b65d962260 also fix #10747 for 2.5D points 2015-10-10 22:01:11 +02:00
Nyall Dawson
beb4ffc16b Followup 80ccb39, also disable test on OSX 2015-10-10 23:14:11 +11:00
Nyall Dawson
11be4447c3 Fix curved labels ignore line orientation placement flag (fix #5778) 2015-10-10 23:13:23 +11:00
Nyall Dawson
5f2d98caa4 Merge pull request #2361 from m-kuhn/fix13549
Cleanup symbol definition widgets when switching between symbol layers
2015-10-10 23:02:38 +11:00
Matthias Kuhn
b82c146cdb Cleanup symbol definition widgets when switching between symbol layers
Fix #13549
2015-10-10 14:01:26 +02:00
Nyall Dawson
80ccb39ae5 More test mask updates. Also disable qgis_labelingenginev2 on Travis
qgis_labelingenginev2 needs to be refactored to use QgsRenderChecker.
Directly comparing the two images is too fragile due and is failing
on Travis.
2015-10-10 22:07:39 +11:00
Nyall Dawson
71498c7c0f Fix uninitialized variables in advanced digitizing dock which meant
that sometimes advanced digitising tools would be activated
unexpectedly.

(Coverity... I'm disappointed. Stop slacking off! I've fixed 1000s
of these warnings you flagged yet you missed the ones which trigerred
actual real bugs)
2015-10-10 21:26:20 +11:00
Nyall Dawson
0da9306159 Fix snapping options dialog not correctly initialised when loading projects 2015-10-10 21:26:14 +11:00
Nyall Dawson
b69e076a51 Fix some leaks 2015-10-10 21:26:08 +11:00
Nyall Dawson
4eb53d366a Update test mask images 2015-10-10 21:21:21 +11:00
Nyall Dawson
16f700a56c Fix svg outline widths are incorrectly scaled (fix #11522)
SVG outline width sizes were not correctly calculated, and were
set to a constant value regardless of the rendered size of the svg
image. This meant that:
1. the rendered outline width was effectively randomly scaled
2. the width would change as the symbol size was modified

This change has some large flow on effects, eg:

- the large outline widths required to render an outline in <2.12
will now be drawn in their correct sizes, eg massive outlines. Projects
will need to be updated to reflect this.
- the default outline width set for the provided svg symbols (1 mm)
is much too large, so the symbols look bad with the default width.
This size needs to be modified in all the (~300 svg marker images)
- On the plus side, the long standing issue where most of the svg
symbols were rendered with white fill on white background and an
almost invisible black border is now fixed (refs #10908, #8538)
2015-10-10 20:27:57 +11:00
Nyall Dawson
a721752ced Allow coloring of svg markers when used with graduated/categorised renderers (fix #11658) 2015-10-10 15:26:08 +11:00
Nyall Dawson
ab70ec99bc Scale svg marker outline width to match context
This is a partial fix for #11522, in that it fixes map unit scaling
for outline width. The width is still too small and incorrectly
scales with symbol size.

(refs #11522)
2015-10-10 15:14:10 +11:00
Nyall Dawson
d8cd15ebf4 Fix broken data defined SVG marker outline width (fix #13423) 2015-10-10 15:13:07 +11:00
Nyall Dawson
d72587f436 Fix Coverity issues:
- uninitialized members
- memory leaks
2015-10-10 13:25:58 +11:00
Giuseppe Sucameli
9f67f4cde0 DBManager: add table/layer to canvas double clicking on it 2015-10-10 00:42:27 +02:00
Juergen E. Fischer
ae1250b104 fix build with grass7 on windows 2015-10-09 17:26:57 +02:00
Juergen E. Fischer
02f1d99a61 vector layer: avoid some crashs when methods are called on invalid layers 2015-10-09 16:18:54 +02:00
Juergen E. Fischer
3beaed9fa1 editor widget: don't reset empty strings to null, if default value is null (fixes #13546) 2015-10-09 15:49:40 +02:00
Nyall Dawson
910dc169ba Fix node tool duplicates nodes when topological editing and
snap are both enabled (fix #13466)
2015-10-09 23:53:16 +11:00
Salvatore Larosa
fcb3bbea68 [vertex editor] allow zooming to vertex with the mouse click 2015-10-09 22:35:36 +11:00
Nyall Dawson
534cb410eb Use a model for node editor table (fixes #13541)
This commit switches the node editor to use a model backend rather then
inserting and updating every node on every edit. Fixes the hang when
editing a large feature.

Also implements some extra functionality like scrolling to a selected
vertex in the table.
2015-10-09 22:35:36 +11:00
Nyall Dawson
42d1c44fbd Fix doxygen warning (again) 2015-10-09 21:40:30 +11:00
Nyall Dawson
4925a54f35 Followup e5ea5ff, better API 2015-10-09 20:35:28 +11:00
Radim Blazek
c62d81a95b [GRASS] update layer extent after edit 2015-10-09 11:14:07 +02:00
Radim Blazek
070483184b [GRASS] check mapset ownership in browser actions 2015-10-09 10:59:53 +02:00
Radim Blazek
615957afc9 [GRASS] open/new/close mapset removed from toolbar 2015-10-09 10:47:51 +02:00
Radim Blazek
d26765fd08 [GRASS] fixed crash when adding table for existing features 2015-10-09 09:57:14 +02:00
alexbruy
c64d5ff7b5 Merge pull request #2357 from spatialthoughts/patch-1
[processing] remove unused argument
2015-10-09 09:59:50 +03:00
alexbruy
5426ebe8be Merge pull request #2343 from PedroVenancio/grass7_plugin
remove "-write_absolute_path" option from gdaltindex (addresses #11428, #4064)
2015-10-09 09:53:23 +03:00
Juergen E. Fischer
b11b73cbbe fix precise build 2015-10-09 08:03:44 +02:00
Juergen E. Fischer
3bd952d85f translation string fix 2015-10-09 02:08:57 +02:00
Juergen E. Fischer
bc59d6f18d adapt local simplication to new geometry types (fixes #13538) 2015-10-09 01:39:49 +02:00
Nyall Dawson
a0d7653b53 Fix symbols drawn multiple times in rule based renderer if symbol
has multiple layers

(fixes #some-blocking-issue-i-can't-find-because-hub-is-down)
2015-10-09 07:39:31 +11:00
Nyall Dawson
b55708ec7b Fix doxygen warning 2015-10-09 06:52:04 +11:00