projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
no changes, just clarified meaning of various conversion functions in a comment
[wxWidgets.git]
/
src
/
richtext
/
richtextbuffer.cpp
diff --git
a/src/richtext/richtextbuffer.cpp
b/src/richtext/richtextbuffer.cpp
index 1362fab7092a822153d558ac57a8634288df701a..3b3e0e03865f3fbd809c29a2e14a164ef71a9b31 100644
(file)
--- a/
src/richtext/richtextbuffer.cpp
+++ b/
src/richtext/richtextbuffer.cpp
@@
-57,6
+57,7
@@
const wxChar wxRichTextLineBreakChar = (wxChar) 29;
inline void wxCheckSetFont(wxDC& dc, const wxFont& font)
{
inline void wxCheckSetFont(wxDC& dc, const wxFont& font)
{
+#if 0
const wxFont& font1 = dc.GetFont();
if (font1.IsOk() && font.IsOk())
{
const wxFont& font1 = dc.GetFont();
if (font1.IsOk() && font.IsOk())
{
@@
-68,6
+69,7
@@
inline void wxCheckSetFont(wxDC& dc, const wxFont& font)
font1.GetFaceName() == font.GetFaceName())
return;
}
font1.GetFaceName() == font.GetFaceName())
return;
}
+#endif
dc.SetFont(font);
}
dc.SetFont(font);
}
@@
-431,7
+433,7
@@
bool wxRichTextCompositeObject::Defragment(const wxRichTextRange& range)
while (node)
{
wxRichTextObject* child = node->GetData();
while (node)
{
wxRichTextObject* child = node->GetData();
- if (!child->GetRange().IsOutside(range))
+ if (
range == wxRICHTEXT_ALL ||
!child->GetRange().IsOutside(range))
{
wxRichTextCompositeObject* composite = wxDynamicCast(child, wxRichTextCompositeObject);
if (composite)
{
wxRichTextCompositeObject* composite = wxDynamicCast(child, wxRichTextCompositeObject);
if (composite)