mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
better fix for iterator problem.
This commit is contained in:
parent
7ef6815b7a
commit
9fb7d341f7
@ -614,11 +614,12 @@ nsFormControlFrame::GetTextSize(nsIPresContext& aPresContext, nsFormControlFrame
|
||||
{
|
||||
nsAutoString val;
|
||||
char char1, char2;
|
||||
GetRepChars(aPresContext, char1, char2);
|
||||
for (int i = 0; i < aNumChars; i+=2) {
|
||||
GetRepChars(aPresContext, char1, char2);
|
||||
int i;
|
||||
for (i = 0; i < aNumChars; i+=2) {
|
||||
val += char1;
|
||||
}
|
||||
for (int i = 1; i < aNumChars; i+=2) {
|
||||
for (i = 1; i < aNumChars; i+=2) {
|
||||
val += char2;
|
||||
}
|
||||
return GetTextSize(aPresContext, aFrame, val, aSize);
|
||||
|
@ -614,11 +614,12 @@ nsFormControlFrame::GetTextSize(nsIPresContext& aPresContext, nsFormControlFrame
|
||||
{
|
||||
nsAutoString val;
|
||||
char char1, char2;
|
||||
GetRepChars(aPresContext, char1, char2);
|
||||
for (int i = 0; i < aNumChars; i+=2) {
|
||||
GetRepChars(aPresContext, char1, char2);
|
||||
int i;
|
||||
for (i = 0; i < aNumChars; i+=2) {
|
||||
val += char1;
|
||||
}
|
||||
for (int i = 1; i < aNumChars; i+=2) {
|
||||
for (i = 1; i < aNumChars; i+=2) {
|
||||
val += char2;
|
||||
}
|
||||
return GetTextSize(aPresContext, aFrame, val, aSize);
|
||||
|
Loading…
Reference in New Issue
Block a user