a=leaf r=ftang. I will be more carefull with ime when doing selection.. I will be more carefull with ime...

git-svn-id: svn://10.0.0.236/trunk@65516 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mjudge%netscape.com
2000-04-08 00:17:14 +00:00
parent c1cd9d0105
commit 5d8cfb2393
2 changed files with 26 additions and 0 deletions

View File

@@ -773,6 +773,7 @@ class DrawSelectionIterator
enum {SELECTION_TYPES_WE_CARE_ABOUT=SELECTION_NONE+SELECTION_NORMAL};
public:
DrawSelectionIterator(const SelectionDetails *aSelDetails, PRUnichar *aText,PRUint32 aTextLength, nsTextFrame::TextStyle &aTextStyle);
~DrawSelectionIterator();
PRBool First();
PRBool Next();
PRBool IsDone();
@@ -843,6 +844,12 @@ DrawSelectionIterator::DrawSelectionIterator(const SelectionDetails *aSelDetails
mTypes[i]|=details->mType;//add this bit
}
}
if (!mInit && mTypes) //we have details but none that we
{
delete mTypes;
mTypes = nsnull;
mDone = true;
}
details= details->mNext;
}
}
@@ -854,6 +861,12 @@ DrawSelectionIterator::DrawSelectionIterator(const SelectionDetails *aSelDetails
mInit = PR_TRUE;
}
DrawSelectionIterator::~DrawSelectionIterator()
{
if (mTypes)
delete mTypes;
}
void
DrawSelectionIterator::FillCurrentData()
{