Restored code uglies
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35964 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1535,7 +1535,7 @@ bool wxRichTextParagraphLayoutBox::SetStyle(const wxRichTextRange& range, const
|
|||||||
{
|
{
|
||||||
// We'll be using a copy of the paragraph to make style changes,
|
// We'll be using a copy of the paragraph to make style changes,
|
||||||
// not updating the buffer directly.
|
// not updating the buffer directly.
|
||||||
wxRichTextParagraph* newPara = NULL;
|
wxRichTextParagraph* newPara wxDUMMY_INITIALIZE(NULL);
|
||||||
|
|
||||||
if (haveControl && withUndo)
|
if (haveControl && withUndo)
|
||||||
{
|
{
|
||||||
@@ -1560,8 +1560,8 @@ bool wxRichTextParagraphLayoutBox::SetStyle(const wxRichTextRange& range, const
|
|||||||
// we can start applying a different style.
|
// we can start applying a different style.
|
||||||
// TODO: check that the style actually changes or is different
|
// TODO: check that the style actually changes or is different
|
||||||
// from style outside of range
|
// from style outside of range
|
||||||
wxRichTextObject* firstObject = NULL;
|
wxRichTextObject* firstObject wxDUMMY_INITIALIZE(NULL);
|
||||||
wxRichTextObject* lastObject = NULL;
|
wxRichTextObject* lastObject wxDUMMY_INITIALIZE(NULL);
|
||||||
|
|
||||||
if (childRange.GetStart() == newPara->GetRange().GetStart())
|
if (childRange.GetStart() == newPara->GetRange().GetStart())
|
||||||
firstObject = newPara->GetChildren().GetFirst()->GetData();
|
firstObject = newPara->GetChildren().GetFirst()->GetData();
|
||||||
@@ -1629,7 +1629,7 @@ bool wxRichTextParagraphLayoutBox::SetStyle(const wxRichTextRange& range, const
|
|||||||
/// Get the text attributes for this position.
|
/// Get the text attributes for this position.
|
||||||
bool wxRichTextParagraphLayoutBox::GetStyle(long position, wxTextAttrEx& style) const
|
bool wxRichTextParagraphLayoutBox::GetStyle(long position, wxTextAttrEx& style) const
|
||||||
{
|
{
|
||||||
wxRichTextObject* obj = NULL;
|
wxRichTextObject* obj wxDUMMY_INITIALIZE(NULL);
|
||||||
|
|
||||||
if (style.IsParagraphStyle())
|
if (style.IsParagraphStyle())
|
||||||
obj = GetParagraphAtPosition(position);
|
obj = GetParagraphAtPosition(position);
|
||||||
@@ -1648,7 +1648,7 @@ bool wxRichTextParagraphLayoutBox::GetStyle(long position, wxTextAttrEx& style)
|
|||||||
/// Get the text attributes for this position.
|
/// Get the text attributes for this position.
|
||||||
bool wxRichTextParagraphLayoutBox::GetStyle(long position, wxRichTextAttr& style) const
|
bool wxRichTextParagraphLayoutBox::GetStyle(long position, wxRichTextAttr& style) const
|
||||||
{
|
{
|
||||||
wxRichTextObject* obj = NULL;
|
wxRichTextObject* obj wxDUMMY_INITIALIZE(NULL);
|
||||||
|
|
||||||
if (style.IsParagraphStyle())
|
if (style.IsParagraphStyle())
|
||||||
obj = GetParagraphAtPosition(position);
|
obj = GetParagraphAtPosition(position);
|
||||||
@@ -1906,7 +1906,7 @@ bool wxRichTextParagraph::Draw(wxDC& dc, const wxRichTextRange& WXUNUSED(range),
|
|||||||
wxRichTextLine* line = m_cachedLines.GetFirst() ? (wxRichTextLine* ) m_cachedLines.GetFirst()->GetData() : (wxRichTextLine*) NULL;
|
wxRichTextLine* line = m_cachedLines.GetFirst() ? (wxRichTextLine* ) m_cachedLines.GetFirst()->GetData() : (wxRichTextLine*) NULL;
|
||||||
|
|
||||||
wxPoint linePos;
|
wxPoint linePos;
|
||||||
int lineHeight = 0;
|
int lineHeight wxDUMMY_INITIALIZE(0);
|
||||||
if (line)
|
if (line)
|
||||||
{
|
{
|
||||||
lineHeight = line->GetSize().y;
|
lineHeight = line->GetSize().y;
|
||||||
|
Reference in New Issue
Block a user