[Kst] Re: extragear/graphics/kst/kst

George Staikos staikos at kde.org
Wed May 25 03:06:03 CEST 2005


Does this actually crash without this patch?  If so, how?

Thanks

On Tuesday 24 May 2005 17:09, Andrew Walker wrote:
> SVN commit 417874 by arwalker:
>
> Code more defensively
>
>  M  +6 -1      kstplugin.cpp
>
>
> --- trunk/extragear/graphics/kst/kst/kstplugin.cpp #417873:417874
> @@ -593,9 +593,14 @@
>    _curveHints->clear();
>    if (_plugin) {
>      for (QValueList<Plugin::Data::CurveHint>::ConstIterator i =
> _plugin->data()._hints.begin(); i != _plugin->data()._hints.end(); ++i) { -
>      _curveHints->append(new KstCurveHint((*i).name,
> _outputVectors[(*i).x]->tagName(), _outputVectors[(*i).y]->tagName())); +  
>    if (_outputVectors.contains((*i).x) && _outputVectors.contains((*i).y))
> { +        _curveHints->append(new KstCurveHint((*i).name,
> +                            _outputVectors[(*i).x]->tagName(),
> +                            _outputVectors[(*i).y]->tagName()));
> +      }
>      }
>    }
> +
>    return KstDataObject::curveHints();
>  }

-- 
George Staikos
KDE Developer				http://www.kde.org/
Staikos Computing Services Inc.		http://www.staikos.net/


More information about the Kst mailing list