Revision 1185980

Go back to digest for 17th October 2010

Optimization in Office

Johannes Simon committed changes in /trunk/koffice/plugins/chartshape/Axis.cpp:

Reduce logic to set and determine a diagram's KDChartModel considerably thanks to a comment from Sebastian.
This commit makes sure that a diagram's model is always set by doing this directly in registerDiagram().

By doing this I noticed that the d->kd*DiagramModel variable is actually redundant, as we can always get the model using d->kd*Diagram->model() and since it's now made sure that the existence of a diagram implies the existance of its model and the other way around.

File Changes

Modified 1 files
  • /trunk/koffice/plugins/chartshape/Axis.cpp
1 files changed in total