ChartShape: Fix crash due to accessing stale pointers

Authored by danders on Nov 22 2016, 12:17 PM.

Description

ChartShape: Fix crash due to accessing stale pointers

Summary:
Some data pointers where not reset when shape selection changed,
thus accessing data from privously selected shape.

Test:
Add a chart to eg sheets
Undo
Add another shape to chart

Result before: crash
After: No crash

This may have bearing on:
CCBUG: 365238
but needs more testing.

Reviewers: mecir, boemann

Reviewed By: boemann

Tags: KEXI, #calligra:_3.0

Differential Revision: https://phabricator.kde.org/D3455

Details

Committed
dandersNov 23 2016, 8:14 AM
Reviewer
boemann
Differential Revision
D3455: ChartShape: Fix crash due to accessing stale pointers
Parents
R8:21d039f27a63: Merge branch 'master' of git://anongit.kde.org/calligra
Branches
Unknown
Tags
Unknown