Hi everybody,

I paint some charts from timing measures that sometimes contain gaps or
the measured times were below the threshold and thus 0.0.
As long as I use linear scales, everything is fine, but when I use
logarithmic scales I often get std::bad_alloc because in
WAxis::getLabelTicks() the ticks vector gets filled as long as there is
memory available.
I solved the issue for now by filling the gaps and replacing the zero
values with something very small like 0.00001 in the StandardItemModel
before passing to the chart.
Is this the standard procedure, or would it make sense to handle such
inputs in the WAxis?

Rgds
Richard


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to