diff --git a/docs/doxygen/overviews/xrc_format.h b/docs/doxygen/overviews/xrc_format.h index 9ad73560f1..4b4dc7f29f 100644 --- a/docs/doxygen/overviews/xrc_format.h +++ b/docs/doxygen/overviews/xrc_format.h @@ -1731,7 +1731,7 @@ No additional properties. @hdr3col{property, type, description} @row3col{label, @ref overview_xrcformat_type_text, Label to display (required).} -@row3col{wrap, integer, +@row3col{wrap, @ref overview_xrcformat_type_dimension, Wrap the text so that each line is at most the given number of pixels, see wxStaticText::Wrap() (default: no wrap).} @endTable diff --git a/src/xrc/xh_sttxt.cpp b/src/xrc/xh_sttxt.cpp index 3b4c9b91e1..da93c2a44c 100644 --- a/src/xrc/xh_sttxt.cpp +++ b/src/xrc/xh_sttxt.cpp @@ -47,7 +47,7 @@ wxObject *wxStaticTextXmlHandler::DoCreateResource() SetupWindow(text); - long wrap = GetLong(wxT("wrap"), -1); + long wrap = GetDimension(wxT("wrap"), -1); if (wrap != -1) text->Wrap(wrap);