[ROOT] TGTextView::Search bug

From: Thomas Bretz (tbretz@astro.uni-wuerzburg.de)
Date: Thu May 08 2003 - 15:06:42 MEST


Dear rooters,

I'm not sure, whether it has been fixed already... I'm using root 3.02/07

Search doesn't work correctly. It is possible to search forward, but it 
is not possible to search backward.

Simple exchange the first lines to the following will do the job:
if (fIsMarked)
   if (!direction)
   {
      pos2.fX = fMarkedStart.fX;
      pos2.fY = fMarkedStart.fY;
   }
   else
   {
      pos2.fX = fMarkedEnd.fX+1;
      pos2.fY = fMarkedEnd.fY;
   }
And remove the ++, -- in the following lines...

Best regards,
Thomas.

PS: Would be great if Mark(), Unmark() would be public.



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:11 MET