[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: QMLE core dump
From: Greg Lee <lee () hawaii ! edu>
Date: 1999-12-22 18:26:36
[Download RAW message or body]
That fixed it.
Greg Lee <lee@Hawaii.edu>
On Wed, 22 Dec 1999, Don Sanders wrote:
> On Wed, 22 Dec 1999, Greg Lee wrote:
> >
> > Is there something else you'd like me to do? My qt-copy is several
> > days old now -- maybe the bug is gone.
>
> I don't think it has been fixed. (I donated this bit of code, and it seems to
> have been accepted as is, and remains that way in the latest snapshot)
>
> Could you modify the positionToOffsetInternal method by inserting the lines
> commented with"Sanity check" below. (Then make QT, then rerun you app). And see
> if the problem persists or is solved?
>
> int QMultiLineEdit::positionToOffsetInternal( int row, int col ) const
> {
> row = QMAX( QMIN( row, numLines() - 1), 0 ); // Sanity check
> col = QMAX( QMIN( col, lineLength( row )), 0 ); // Sanity check
> if ( row == 0 )
> return QMIN( col, lineLength( 0 ));
> else {
> int lastI;
> lastI = lineLength( row );
> int i, tmp = 0;
>
> BFN,
> Don.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic