Fix the crash, contentLen should not be extended futher than the text fragment's length. git-svn-id: svn://10.0.0.236/trunk@73957 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -3685,8 +3685,11 @@ nsTextFrame::MeasureText(nsIPresContext* aPresContext,
|
||||
// XXX need a lookup function here; plus look ahead using the
|
||||
// text-runs
|
||||
if ((firstChar == '\'') || (firstChar == '\"')) {
|
||||
wordLen = 2;
|
||||
contentLen = 2;
|
||||
if (contentLen > 1)
|
||||
{
|
||||
wordLen = 2;
|
||||
contentLen = 2;
|
||||
}
|
||||
}
|
||||
else {
|
||||
wordLen = 1;
|
||||
|
||||
@@ -3685,8 +3685,11 @@ nsTextFrame::MeasureText(nsIPresContext* aPresContext,
|
||||
// XXX need a lookup function here; plus look ahead using the
|
||||
// text-runs
|
||||
if ((firstChar == '\'') || (firstChar == '\"')) {
|
||||
wordLen = 2;
|
||||
contentLen = 2;
|
||||
if (contentLen > 1)
|
||||
{
|
||||
wordLen = 2;
|
||||
contentLen = 2;
|
||||
}
|
||||
}
|
||||
else {
|
||||
wordLen = 1;
|
||||
|
||||
Reference in New Issue
Block a user