[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Tue Jul 27 02:16:10 CEST 2004
Using a mutex is very expensive, relatively, and a bool is perfectly
sufficient. If this is being called by other threads, we have bigger
problems.
On Monday 26 July 2004 20:08, Andrew Walker wrote:
> CVS commit by arwalker:
>
> I'm guessing that a check for the datamode is quicker than the check for a
> mutex.
>
>
> M +4 -2 kst2dplot.cpp 1.181
>
>
> --- kdeextragear-2/kst/kst/kst2dplot.cpp #1.180:1.181
> @@ -982,6 +982,8 @@ void Kst2DPlot::paint(KstPaintType type,
> // we might need to redraw the datamode marker...
> //
> - if (!_highlighting.locked()) {
> if (KstApp::inst()->dataMode()) {
> + if (!_highlighting.locked()) {
> + _copy_x = _copy_y = KST::NOPOINT;
> +
> KstTopLevelViewPtr tlv = KstApp::inst()->activeView();
> if (tlv) {
>
>
> _______________________________________________
> Kst mailing list
> Kst at kde.org
> https://mail.kde.org/mailman/listinfo/kst
--
George Staikos
KDE Developer http://www.kde.org/
Staikos Computing Services Inc. http://www.staikos.net/
More information about the Kst
mailing list