зеркало из https://github.com/mozilla/gecko-dev.git
49154: uninitialized variable. Thanks to bruce@cubik.org (Bruce Mitchener)
This commit is contained in:
Родитель
a91a1d9299
Коммит
fc4ab5d947
|
@ -3016,7 +3016,6 @@ PRInt16 adjust=0;
|
|||
void
|
||||
RoundedRect::Set(nscoord aLeft,nscoord aTop,PRInt32 aWidth,PRInt32 aHeight,PRInt16 aRadius[4],PRInt16 aNumTwipPerPix)
|
||||
{
|
||||
PRBool doRound;
|
||||
nscoord x,y,width,height;
|
||||
int i;
|
||||
|
||||
|
@ -3042,6 +3041,7 @@ RoundedRect::Set(nscoord aLeft,nscoord aTop,PRInt32 aWidth,PRInt32 aHeight,PRIn
|
|||
// if we are drawing a circle
|
||||
mDoRound = PR_FALSE;
|
||||
if(aHeight==aWidth){
|
||||
PRBool doRound = PR_TRUE;
|
||||
for(i=0;i<4;i++){
|
||||
if(mRoundness[i]<(aWidth>>1)){
|
||||
doRound = PR_FALSE;
|
||||
|
|
|
@ -3016,7 +3016,6 @@ PRInt16 adjust=0;
|
|||
void
|
||||
RoundedRect::Set(nscoord aLeft,nscoord aTop,PRInt32 aWidth,PRInt32 aHeight,PRInt16 aRadius[4],PRInt16 aNumTwipPerPix)
|
||||
{
|
||||
PRBool doRound;
|
||||
nscoord x,y,width,height;
|
||||
int i;
|
||||
|
||||
|
@ -3042,6 +3041,7 @@ RoundedRect::Set(nscoord aLeft,nscoord aTop,PRInt32 aWidth,PRInt32 aHeight,PRIn
|
|||
// if we are drawing a circle
|
||||
mDoRound = PR_FALSE;
|
||||
if(aHeight==aWidth){
|
||||
PRBool doRound = PR_TRUE;
|
||||
for(i=0;i<4;i++){
|
||||
if(mRoundness[i]<(aWidth>>1)){
|
||||
doRound = PR_FALSE;
|
||||
|
|
Загрузка…
Ссылка в новой задаче