removed spurious pairs of StartDraw/EndDraw

This commit is contained in:
pierre%netscape.com 1999-04-20 04:03:10 +00:00
Родитель 7d0b5e45db
Коммит 3d1e56630e
1 изменённых файлов: 0 добавлений и 4 удалений

Просмотреть файл

@ -422,9 +422,7 @@ NS_METHOD nsTextWidget::SetPassword(PRBool aIsPassword)
short newControlType = (aIsPassword ? kControlEditTextPasswordProc : kControlEditTextProc);
SetControlType(newControlType);
StartDraw();
theResult = CreateOrReplaceMacControl(newControlType);
EndDraw();
}
return theResult;
}
@ -445,9 +443,7 @@ NS_METHOD nsTextWidget::SetReadOnly(PRBool aReadOnlyFlag, PRBool& aOldFlag)
short newControlType = (aReadOnlyFlag ? kControlStaticTextProc : kControlEditTextProc);
SetControlType(newControlType);
StartDraw();
theResult = CreateOrReplaceMacControl(newControlType);
EndDraw();
}
return theResult;
}