Bug report #3528
uniqueValue() function is needed on vector layer level
|Affected QGIS version:||Regression?:||No|
|Operating System:||Windows||Easy fix?:||No|
|Pull Request or Patch supplied:||Resolution:||fixed|
|Crashes QGIS or corrupts data:||Copied to github as #:||13588|
When you classify a spatialite layer which has joined attributes (with the new table join), the rv15265 makes a full crash on WinXP (I didn't try under another OS).
Here is the DebugView's log related to this event:
r1352 Object::connect: (sender r1352 Object::connect: (receiver name: 'QgsSymbolV2SelectorDialogBase')
r1352 d:\\progs\\c\\qgis_unstable\\src\\app\\qgslabeldialog.cpp(60) : (QgsLabelDialog::init) entering.
r1352 d:\\progs\\c\\qgis_unstable\\src\\providers\\spatialite\\qgsspatialiteprovider.cpp(2195) : (QgsSpatiaLiteProvider::field) Field 12 not found.
The same layer converted to shp and joined with the same dbf table doesn't crash but the classification is empty.
#2 Updated by Marco Hugentobler over 10 years ago
The crash itself is fixed in b055bdc8 (SVN r15306). The main problem however is that the function uniqueValues() only exist on datasource level, not on vector layer level (thus ignoring the joined fields for classification). Therefore, I'm changing the title of the ticket.