48375 Commits

Author SHA1 Message Date
Juergen E. Fischer
4790747aea Tune osgeo4w scripts (followup cab6a4b6) 2018-06-20 10:01:34 +02:00
Nyall Dawson
fb3ff6d226 [layouts] Fix a crash when using multiframe items when no pages exist 2018-06-20 17:12:13 +10:00
Nyall Dawson
afde31b94f [layouts] Avoid a crash when no pages exist in layout 2018-06-20 17:12:13 +10:00
Matthias Kuhn
2778266be9
Merge pull request #7274 from m-kuhn/raii
Code cleanup
2018-06-20 07:41:25 +02:00
Nyall Dawson
77d22849d9 Fix calculation of relation aggregate in virtual field with same name as related field 2018-06-20 15:23:55 +10:00
Nyall Dawson
4132dbc1c8 Typo 2018-06-20 15:06:36 +10:00
Nyall Dawson
e489761cc2 Good typography 2018-06-20 15:04:08 +10:00
Matthias Kuhn
bf4604f0fe
Typo 2018-06-20 06:30:50 +02:00
Matthias Kuhn
4dfbb6b7dd
Stick to C++11 for now 2018-06-20 06:30:17 +02:00
Nyall Dawson
8d6ce61a70 [processing] Silence warnings thrown from within plotly on import 2018-06-20 08:07:23 +10:00
Nyall Dawson
16ac437780 [processing] Fix bar and box plot exception when category field has NULL values 2018-06-20 08:07:23 +10:00
Lancelot SIX
31a8f3f1ad Ensure qgis.db is writable when copied from RO source
In some package managers (such as NIX[1], used in NixOS[2]), all the data is
installed into a read-only file system.

When QGis is first launched on those systems, it copies the template
`qgis.db` from the share directory into the user private .local
directory, but keeps its permissions unchanged: readonly. Any attempt
from QGIS to update this file fails.

This commit makes sure that the `qgis.db` file is user writable when it
is copied from the installation directory.

[1] https://nixos.org/nix/
[2] https://nixos.org/
2018-06-20 08:06:35 +10:00
Harrissou Sant-anna
81330ec7c6 Replace Style tab by symbology
to be coherent with vector layer properties dialog and cleanup the 'style' misuse/confusion
2018-06-20 07:33:08 +10:00
Sandro Mani
16673ae944 Fix potential buffer truncation
Forward ported from kadas-albireo
2018-06-20 07:09:24 +10:00
Matthias Kuhn
693455b30b
Use const cache 2018-06-19 22:32:13 +02:00
Denis Rouzaud
d36015070c
Merge pull request #7171 from 3nids/sip_python_repr
create Python __repr__ methods for QgsPoint and QgsPointXY
2018-06-19 09:56:28 -08:00
Denis Rouzaud
ff1988f11d Python __repr__ test output 2018-06-19 13:55:53 -04:00
Nyall Dawson
2aa2ef48f0 [layouts] Fix data defined page sizes sometimes lead to incorrect
created atlas image sizes

Because the exporter prefers to use the image size when it's
specified (as is done in QGIS app), we need to ignore this
when the aspect ratio of that size doesn't match the aspect
ratio of the page to render.

Fixes #18534
2018-06-20 02:43:51 +10:00
Alessandro Pasotti
543c7a79c5
Merge pull request #7272 from tudorbarascu/tests
remove redundant test
2018-06-19 17:37:25 +02:00
Matthias Kuhn
353eb65117
Double quote to prevent globbing and word splitting. 2018-06-19 16:22:38 +02:00
Matthias Kuhn
6993380838
$/${} is unnecessary on arithmetic variables. 2018-06-19 16:15:38 +02:00
Matthias Kuhn
4d8cdd8933
Double quote to prevent globbing and word splitting. 2018-06-19 16:15:28 +02:00
Matthias Kuhn
49a55b0e70
Add shebang to shell scripts 2018-06-19 16:11:09 +02:00
Matthias Kuhn
c5825aa103
Code cleanup 2018-06-19 15:00:25 +02:00
Denis Rouzaud
763dfd2998 use SIP to define Python __repr__ rather than injections
because it's a bit more clever!
2018-06-19 07:58:26 -04:00
Tudor Bărăscu
0b9df82268 remove redundant test 2018-06-19 14:16:01 +03:00
Denis Rouzaud
a719605ef1 clean auto folders in sip test 2018-06-19 07:14:22 -04:00
Denis Rouzaud
cc3e29bcc2 add __repr__ for more geometry classes and add test 2018-06-19 07:02:17 -04:00
Denis Rouzaud
ac4f508c13 create Python __repr__ methods for QgsPoint and QgsPointXY 2018-06-19 07:02:17 -04:00
Alessandro Pasotti
97726d6fbc
Merge pull request #7270 from tudorbarascu/enable_tests
enable test for getfeatureinfo value relation widget values
2018-06-19 12:26:20 +02:00
Matthias Kuhn
cab6a4b648
Merge pull request #4990 from imiara/master
Updated instructions on building QGIS master under MSVC 2015
2018-06-19 11:41:42 +02:00
Alessandro Pasotti
5797c49312
Merge pull request #7261 from elpaso/bugfix-19195-wms-drag
[bugfix] Fix double escaping of colon in QgsMimeDataUtils
2018-06-19 11:40:08 +02:00
Nyall Dawson
c58c99829a Expand range of colors available for new layers
Here's the rules if you want to add more here (developed by
@nirvn and myself)

- Keep colors in the "middle" - avoid too light or too dark colors,
too light colors will make line layers invisible on the
default white background, too dark colors are too visually heavy
for polygon areas

- Avoid over saturated/pure colors, which are too visually heavy. E.g.

- No blues! Blues have a single meaning on maps (water) and we're
almost never going to fluke that a randomly assigned blue color
is given to a water feature layer. So we just avoid blues altogether
as users are almost always going to have to change layers away
from blue anyway.

- Avoid yellow. Yellow is used as the default selected feature color
in QGIS, so keep colors well away from this yellow to avoid confusion
between selected/unselected yellow layers

- Keep things "happy", "positive" and "friendly". No baby puke green/browns
2018-06-19 19:22:50 +10:00
Tudor Bărăscu
05fad59b26 enable test for getfeatureinfo value relation widget values 2018-06-19 12:08:02 +03:00
Matthias Kuhn
1a2213d891
Merge branch 'master' into master 2018-06-19 10:57:33 +02:00
Nyall Dawson
7a2302d2c9 Use better approach to set dock visibility shortcuts
Instead of just showing/hiding the dock, use the toggleUserVisible
method instead. This means that open docks, which are however
hidden behind a different tab, aren't closed, but instead are
brought forward to be user visible.
2018-06-19 17:22:12 +10:00
Nyall Dawson
a2ef677912 Add method to toggle user visibility of QgsDockWidgets 2018-06-19 17:22:12 +10:00
Harrissou Sant-anna
c95e1c67f0 Reorder widgets and replace outline label 2018-06-19 17:17:47 +10:00
Harrissou Sant-anna
9b220664b0 Place labels next to their corresponding options in North Arrow decoration
The "placement" and "Margin from edge" labels are currently inverted
Also fix tabstops
2018-06-19 17:17:47 +10:00
Alessandro Pasotti
941d1c0677 Use QRegularExpression and negative look behind 2018-06-19 09:05:03 +02:00
Alessandro Pasotti
db55088f1d
Merge pull request #7265 from ablakey/fix-py-provider-index
Addressed two issues that caused createSpatialIndex() to fail.
2018-06-19 08:22:04 +02:00
Nyall Dawson
4059c9b71d Move some more common geometry methods to headers to allow compiler inlining 2018-06-19 13:16:02 +10:00
Nyall Dawson
3ea8a41834 [layouts] Tweak format of multiple metadata keyword argument exports 2018-06-19 12:08:11 +10:00
Andrew Blakey
d84471b149 Addressed two issues that caused createSpatialIndex() to fail. Fixes #19220 2018-06-18 20:04:43 -04:00
Nyall Dawson
5b47f94f75 Fix silliness in test 2018-06-19 06:23:58 +10:00
Nyall Dawson
063b169bd7 Spelling 2018-06-19 06:23:58 +10:00
Nyall Dawson
077ecedfc5 Unit tests for QgsMessageLog 2018-06-19 06:23:58 +10:00
Nyall Dawson
72f7e5b560 Don't flag the "running from build path" warning in the app
message log
2018-06-19 06:23:58 +10:00
Nyall Dawson
949853a0e0 Add API for temporarily suppressing user notifications for
message log critical/warning messages

These messages are still logged, but the log indicator is not
modified to flag their appearance.

This allows certain error messages to be logged (e.g. on startup)
which cannot be fixed by users/developers (e.g. those caused
by upstream Qt issues, 3rd party Python libraries, etc) but
without flagging them.

Currently, we get so many of these warnings on startup that the
log indicator loses all impact, and newly introduced, VALID
errors go unnoticed/ignored.
2018-06-19 06:23:58 +10:00
Nyall Dawson
00f0583325 Fix doc test 2018-06-18 23:14:45 +10:00