time_t
TjGanttChart::x2time(int x) const
{
- assert(zoomSteps.size() > 0);
+ if (zoomSteps.size() <= 0)
+ return -1;
return (time_t) (startTime + ((float) x * 60 * 60 * 24 * 365) /
zoomSteps[currentZoomStep]->getPixelsPerYear());
if (loadingProject) return;
setCursor(KCursor::waitCursor());
+ setLoadingProject(true);
prepareChart();
ganttChart->getHeaderCanvas()->update();
ganttChart->getChartCanvas()->update();
+ setLoadingProject(false);
setCursor(KCursor::arrowCursor());
}
void
TjReport::zoomTo(const QString& label)
{
- if (!isVisible())
+ if (loadingProject || !isVisible())
return;
time_t x = ganttChart->x2time(ganttChartView->contentsX());
int y = ganttChartView->contentsY();
+ if (x <= 0 && y <= 0)
+ return;
if (!ganttChart->zoomTo(label))
return;
void
TjReport::zoomIn()
{
- if (!isVisible())
+ if (loadingProject || !isVisible())
return;
time_t x = ganttChart->x2time(ganttChartView->contentsX());
void
TjReport::zoomOut()
{
- if (!isVisible())
+ if (loadingProject || !isVisible())
return;
time_t x = ganttChart->x2time(ganttChartView->contentsX());
and use separators between all
columns.</para></listitem>
+<listitem><para>Fixed missing start time for certain tasks in ICal reports.</para></listitem>
+
+<listitem><para>Fixed wrong total values in CSV account reports when tree mode (default) was used.</para></listitem>
+
+<listitem><para>Fixed crash when pressing F9 at a high rate in the GUI.</para></listitem>
+
</itemizedlist></para>
</sect2>