Added a wxRichTextCtrl-specific caret implementation in case of need
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -6922,6 +6922,9 @@ void wxRichTextAction::UpdateAppearance(long caretPosition, bool sendUpdateEvent
|
||||
#endif
|
||||
m_ctrl->Refresh(false);
|
||||
|
||||
#if wxRICHTEXT_USE_OWN_CARET
|
||||
m_ctrl->PositionCaret();
|
||||
#endif
|
||||
if (sendUpdateEvent)
|
||||
wxTextCtrl::SendTextUpdatedEvent(m_ctrl);
|
||||
}
|
||||
@@ -7071,6 +7074,9 @@ bool wxRichTextImage::GetRangeSize(const wxRichTextRange& range, wxSize& size, i
|
||||
if (!range.IsWithin(GetRange()))
|
||||
return false;
|
||||
|
||||
if (!m_image.Ok())
|
||||
((wxRichTextImage*) this)->LoadFromBlock();
|
||||
|
||||
if (partialExtents)
|
||||
{
|
||||
if (m_image.Ok())
|
||||
|
Reference in New Issue
Block a user