Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#2649 closed bug (fixed)

editing postgis attriubte table crashs qgis when some fields are hidden

Reported by: cmoe Owned by: nobody
Priority: critical: causes crash or data corruption Milestone: Version 1.5.0
Component: Data Provider Version: Trunk
Keywords: attribute table; editing Cc:
Must Fix for Release: Yes Platform: RedHat
Platform Version: Awaiting user input: no

Description

Editing the attribute table of an postgis layer with hidden fields leads to a crash when toggling back the editing mode.

  1. Add a postgis layer to qgis
  2. Open the layer properties
  3. Go to the attributes and set for some fields the edit widget to 'hidden'
  4. Open the attribute table
  5. Enable editing and do some changes
  6. Disable editing
  7. Qgis crashes

The message in the terminal window is: Fatal: ASSERT failure in QList<T>::operator[]: "index out of range", file /usr/local/qt-4.5.2/include/QtCore/qlist.h, line 399

Reloading the same postgis layer shows, that the changes are saved, its only qgis that crashes ....

Change History (2)

comment:1 by jef, 14 years ago

Resolution: fixed
Status: newclosed

probably fixed r13310 - although the crash wasn't reproducable here.

comment:2 by cmoe, 14 years ago

Hi jef

Thank you for the fix, it works for me now.

Note: See TracTickets for help on using tickets.