Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#3528 closed bug (fixed)

uniqueValue() function is needed on vector layer level

Reported by: jrm Owned by: mhugent
Priority: major: does not work as expected Milestone: Version 1.7.0
Component: Vectors Version:
Keywords: Cc:
Must Fix for Release: No Platform: Windows
Platform Version: Awaiting user input: no

Description

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:

[1352] Object::connect: (sender [1352] Object::connect: (receiver name: 'QgsSymbolV2SelectorDialogBase') [1352] d:\progs\c\qgis_unstable\src\app\qgslabeldialog.cpp(60) : (QgsLabelDialog::init) entering. [1352] 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.

Change History (4)

comment:1 by mhugent, 13 years ago

Owner: set to mhugent

Could you attach the data to the ticket or mail it to me privately (marco@…)?

comment:2 by mhugent, 13 years ago

Priority: critical: causes crash or data corruptionmajor: does not work as expected
Summary: classify a joind sqlite crash qgisuniqueValue() function is needed on vector layer level

The crash itself is fixed in r15305. 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.

comment:3 by mhugent, 13 years ago

Resolution: fixed
Status: newclosed

Fixed in r15310

comment:4 by jrm, 13 years ago

thanks a lot marco !

Note: See TracTickets for help on using tickets.