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

git-svn-id: svn://10.0.0.236/trunk@79124 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mjudge%netscape.com 2000-09-14 13:23:31 +00:00
parent 2af3d92098
commit 19449f7998
3 changed files with 21 additions and 3 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;