mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4135 Fix oversized legend icon for the first cross plot entry
This commit is contained in:
parent
415a8bba94
commit
2582e98961
@ -320,15 +320,18 @@ void RiuQwtPlotCurve::setErrorBarsColor(QColor color)
|
|||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RiuQwtPlotCurve::setAppearance(LineStyleEnum lineStyle,
|
void RiuQwtPlotCurve::setAppearance(LineStyleEnum lineStyle,
|
||||||
CurveInterpolationEnum interpolationType,
|
CurveInterpolationEnum interpolationType,
|
||||||
int curveThickness,
|
int requestedCurveThickness,
|
||||||
const QColor& curveColor)
|
const QColor& curveColor)
|
||||||
{
|
{
|
||||||
QwtPlotCurve::CurveStyle curveStyle = QwtPlotCurve::NoCurve;
|
QwtPlotCurve::CurveStyle curveStyle = QwtPlotCurve::NoCurve;
|
||||||
Qt::PenStyle penStyle = Qt::NoPen;
|
Qt::PenStyle penStyle = Qt::NoPen;
|
||||||
|
|
||||||
|
// Qwt bug workaround (#4135): need to set 0 curve thickness for STYLE_NONE
|
||||||
|
int curveThickness = 0;
|
||||||
if (lineStyle != STYLE_NONE)
|
if (lineStyle != STYLE_NONE)
|
||||||
{
|
{
|
||||||
|
curveThickness = requestedCurveThickness;
|
||||||
switch (interpolationType)
|
switch (interpolationType)
|
||||||
{
|
{
|
||||||
case INTERPOLATION_STEP_LEFT:
|
case INTERPOLATION_STEP_LEFT:
|
||||||
|
Loading…
Reference in New Issue
Block a user