<br><br><div class="gmail_quote">On Sun, Oct 25, 2009 at 5:30 AM, Cristian Oneţ <span dir="ltr"><<a href="mailto:onet.cristian@gmail.com">onet.cristian@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
În data de Duminică 25 Octombrie 2009 10:27:10 Cristian Oneț a scris:<br>
<div><div></div><div class="h5">> SVN commit 1039980 by conet:<br>
><br>
> Fixed a crash in the Forecast chart. Also made the chart use the widgets<br>
> space better.<br>
><br>
> M +3 -2 kforecastview.cpp<br>
><br>
><br>
> --- trunk/playground/office/kmymoney/kmymoney2/views/kforecastview.cpp<br>
> #1039979:1039980 @@ -658,7 +658,8 @@<br>
> reportCfg.setIncludingSchedules( false );<br>
> reportCfg.addAccountGroup(MyMoneyAccount::Asset);<br>
> reportCfg.addAccountGroup(MyMoneyAccount::Liability);<br>
> - reportCfg.setColumnsAreDays( true );<br>
> + // FIXME: this causes a crash<br>
> + //reportCfg.setColumnsAreDays( true );<br>
> reportCfg.setConvertCurrency( true );<br>
> reportCfg.setIncludingForecast( true );<br>
><br>
> reportCfg.setDateFilter(QDate::currentDate(),QDate::currentDate().addDays(<br>
> m_forecastDays->value())); @@ -667,7 +668,7 @@<br>
> table.drawChart(*m_forecastChart);<br>
><br>
> // Adjust the size<br>
> - m_forecastChart->resize(m_tab->width()-30, m_tab->height()-60);<br>
> + m_forecastChart->resize(m_tab->width() - 10, m_tab->height());<br>
> m_forecastChart->update();<br>
> }<br>
><br>
</div></div>Alvaro, I thought you might want to take a look at this when you have time :).<br></blockquote><div><br></div><div><br></div><div>Sure. Any idea why this might be failing?</div><div>There are other reports using this setting and they work just fine. </div>
<div><br></div></div>