Suppress unused variable warning in wxRichTextObject code.
Put the variable used only inside #if 0'd code inside #if 0 itself (it would be better to get rid of this entirely, of course...). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77474 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1196,7 +1196,9 @@ bool wxRichTextObject::LayoutToBestSize(wxDC& dc, wxRichTextDrawingContext& cont
|
|||||||
int style)
|
int style)
|
||||||
{
|
{
|
||||||
wxRect availableChildRect = AdjustAvailableSpace(dc, buffer, parentAttr, attr, availableParentSpace, availableContainerSpace);
|
wxRect availableChildRect = AdjustAvailableSpace(dc, buffer, parentAttr, attr, availableParentSpace, availableContainerSpace);
|
||||||
|
#if 0
|
||||||
wxRect originalAvailableRect = availableChildRect;
|
wxRect originalAvailableRect = availableChildRect;
|
||||||
|
#endif
|
||||||
Layout(dc, context, availableChildRect, availableContainerSpace, style);
|
Layout(dc, context, availableChildRect, availableContainerSpace, style);
|
||||||
|
|
||||||
wxSize maxSize = GetMaxSize();
|
wxSize maxSize = GetMaxSize();
|
||||||
|
Reference in New Issue
Block a user