Fix debug spew for bz -- just change #ifdef DEBUG to DEBUG_A11Y, not part of release build

This commit is contained in:
aaronleventhal@moonset.net 2007-08-17 11:21:49 -07:00
parent 8f4b750e06
commit f6b8e55cf5

View File

@ -1511,7 +1511,7 @@ NS_IMETHODIMP nsDocAccessible::FlushPendingEvents()
nsCOMPtr<nsIAccessibleText> accessibleText = do_QueryInterface(accessible);
PRInt32 caretOffset;
if (accessibleText && NS_SUCCEEDED(accessibleText->GetCaretOffset(&caretOffset))) {
#ifdef DEBUG
#ifdef DEBUG_A11Y
PRUnichar chAtOffset;
accessibleText->GetCharacterAtOffset(caretOffset, &chAtOffset);
printf("\nCaret moved to %d with char %c", caretOffset, chAtOffset);