##// END OF EJS Templates
Fix for not overriding user settings for legend markers....
Fix for not overriding user settings for legend markers. Added check if the user has set custom label, pen or brush. In this case these are not taken from the series. Task-number: QTRD-1918 Reviewed-by: Miikka Heikkinen

File last commit:

r2424:4543a29c8891
r2429:d1e41c29fbb9
Show More
charthelpers_p.h
26 lines | 538 B | text/x-c | CLexer
#ifndef CHARTHELPERS_P_H
#define CHARTHELPERS_P_H
#include <qnumeric.h>
#include <QPointF>
static inline bool isValidValue(qreal value)
{
if (qIsNaN(value) || qIsInf(value)) {
qWarning("Ignored NaN, Inf, or -Inf value.");
return false;
}
return true;
}
static inline bool isValidValue(qreal x, qreal y)
{
return (isValidValue(x) && isValidValue(y));
}
static inline bool isValidValue(const QPointF point)
{
return (isValidValue(point.x()) && isValidValue(point.y()));
}
#endif // CHARTHELPERS_P_H