48390 Commits

Author SHA1 Message Date
Nyall Dawson
cab83c51a8 Fix SC2222 warnings 2018-06-21 15:33:29 +10:00
Nyall Dawson
7ad85a451f Fix SC2004 warnings 2018-06-21 15:33:29 +10:00
Nyall Dawson
00477ff910 Fix SC2068 warnings 2018-06-21 15:33:29 +10:00
Nyall Dawson
11bb5afa0b Fix SC2035 warnings 2018-06-21 15:33:29 +10:00
Nyall Dawson
fc20fc81f7 Fix SC2062 warnings 2018-06-21 15:33:29 +10:00
Nyall Dawson
6c9484b923 Fix SC2181 warnings 2018-06-21 15:33:29 +10:00
Nyall Dawson
36e38210db Fix SC2116 warnings 2018-06-21 15:33:29 +10:00
Nyall Dawson
80d655598a Fix SC2219 warnings 2018-06-21 15:33:29 +10:00
Nyall Dawson
4118bafc96 Fix all SC2164 warnings 2018-06-21 15:33:29 +10:00
Nyall Dawson
0d41925535 Disable all failing shellcheck checks 2018-06-21 15:33:29 +10:00
Nyall Dawson
7d938e8b94 [ci] Run shellcheck as part of code_layout build 2018-06-21 15:33:29 +10:00
Nyall Dawson
481461dea0 Align widgets in raster layer save as dialog 2018-06-21 08:56:37 +10:00
Harrissou Sant-anna
c61794cc89 Use a proper label in the "Save raster as" dialog
and mimic the vector dialog
2018-06-21 08:46:19 +10:00
Denis Rouzaud
408979ceb5 fix prepare-commit for python additions 2018-06-20 11:21:25 -08:00
Denis Rouzaud
f749c521a9 use Q_ENUM for QgsLocator::Priority 2018-06-20 11:21:25 -08:00
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