fixing sun/sparc i guess it didnt like the inline if/else statement. separating out.

This commit is contained in:
mjudge%netscape.com 2000-09-14 13:23:31 +00:00
Родитель 715a4c2a34
Коммит fa7f4ce180
3 изменённых файлов: 21 добавлений и 3 удалений

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

@ -1844,7 +1844,13 @@ printf("SetMouseDownState to FALSE - stopping cell selection\n");
mSelectingTableCells = PR_FALSE;
mStartSelectedCell = nsnull;
mEndSelectedCell = nsnull;
PostReason(aState?nsISelectionListener::MOUSEDOWN_REASON:nsISelectionListener::MOUSEUP_REASON);//not a drag reason
short reason;
if (aState)
reason = nsISelectionListener::MOUSEDOWN_REASON;
else
reason = nsISelectionListener::MOUSEUP_REASON;
PostReason(reason);//not a drag reason
NotifySelectionListeners(nsISelectionController::SELECTION_NORMAL);//notify that reason is mouse up please.
}
return NS_OK;

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

@ -1844,7 +1844,13 @@ printf("SetMouseDownState to FALSE - stopping cell selection\n");
mSelectingTableCells = PR_FALSE;
mStartSelectedCell = nsnull;
mEndSelectedCell = nsnull;
PostReason(aState?nsISelectionListener::MOUSEDOWN_REASON:nsISelectionListener::MOUSEUP_REASON);//not a drag reason
short reason;
if (aState)
reason = nsISelectionListener::MOUSEDOWN_REASON;
else
reason = nsISelectionListener::MOUSEUP_REASON;
PostReason(reason);//not a drag reason
NotifySelectionListeners(nsISelectionController::SELECTION_NORMAL);//notify that reason is mouse up please.
}
return NS_OK;

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

@ -1844,7 +1844,13 @@ printf("SetMouseDownState to FALSE - stopping cell selection\n");
mSelectingTableCells = PR_FALSE;
mStartSelectedCell = nsnull;
mEndSelectedCell = nsnull;
PostReason(aState?nsISelectionListener::MOUSEDOWN_REASON:nsISelectionListener::MOUSEUP_REASON);//not a drag reason
short reason;
if (aState)
reason = nsISelectionListener::MOUSEDOWN_REASON;
else
reason = nsISelectionListener::MOUSEUP_REASON;
PostReason(reason);//not a drag reason
NotifySelectionListeners(nsISelectionController::SELECTION_NORMAL);//notify that reason is mouse up please.
}
return NS_OK;