openbsd-ports/www/mozilla-firefox/patches/patch-content_events_src_nsContentEventHandler_cpp
2011-10-03 21:06:09 +00:00

15 lines
706 B
Plaintext

$OpenBSD: patch-content_events_src_nsContentEventHandler_cpp,v 1.5 2011/10/03 21:06:09 landry Exp $
fix for gcc3 archs ?
--- content/events/src/nsContentEventHandler.cpp.orig Thu Aug 25 02:36:40 2011
+++ content/events/src/nsContentEventHandler.cpp Mon Aug 29 14:54:46 2011
@@ -1096,7 +1096,8 @@ nsContentEventHandler::OnSelectionEvent(nsSelectionEve
selPrivate->EndBatchChanges();
NS_ENSURE_SUCCESS(rv, rv);
- nsCOMPtr<nsISelection2>(do_QueryInterface(mSelection))->ScrollIntoView(
+ nsCOMPtr<nsISelection2> sel2 = do_QueryInterface(mSelection);
+ sel2->ScrollIntoView(
nsISelectionController::SELECTION_FOCUS_REGION, PR_FALSE, -1, -1);
aEvent->mSucceeded = PR_TRUE;
return NS_OK;