]> git.saurik.com Git - wxWidgets.git/commitdiff
Minor fixes
authorJulian Smart <julian@anthemion.co.uk>
Mon, 20 Feb 2012 17:58:39 +0000 (17:58 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 20 Feb 2012 17:58:39 +0000 (17:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/richtext/richtextctrl.h
src/richtext/richtextctrl.cpp

index 87f085122c481f4b08a800b2bd168d9c15a88bdc..68a7453d0f81f744d27fa0a683536e8c4f269983 100644 (file)
@@ -2278,6 +2278,9 @@ protected:
         when the control's stylesheet has been replaced, for example when a file
         is loaded into the control.
         Valid event functions: GetOldStyleSheet, GetNewStyleSheet.
+    @event{EVT_RICHTEXT_PROPERTIES_CHANGED(id, func)}
+        Process a @c wxEVT_COMMAND_RICHTEXT_PROPERTIES_CHANGED event, generated when
+        properties have been applied to the control. Valid event functions: GetPosition, GetRange.
     @event{EVT_RICHTEXT_CONTENT_INSERTED(id, func)}
         Process a @c wxEVT_COMMAND_RICHTEXT_CONTENT_INSERTED event, generated when
         content has been inserted into the control.
index f5302ee6ca34e1110ae8874126d44063d910243d..f7dfab511dd82861f348c32d322adb66fcfc6236 100644 (file)
@@ -861,7 +861,6 @@ void wxRichTextCtrl::OnMoveMouse(wxMouseEvent& event)
         // Check for dragging across multiple containers
         long position2 = 0;
         wxRichTextObject* hitObj2 = NULL, *contextObj2 = NULL;
-        wxRichTextDrawingContext context(& GetBuffer());
         int hit2 = GetBuffer().HitTest(dc, context, logicalPt, position2, & hitObj2, & contextObj2, 0);
         if (hit2 != wxRICHTEXT_HITTEST_NONE && !(hit2 & wxRICHTEXT_HITTEST_OUTSIDE) && hitObj2 && hitObj != hitObj2)
         {