Author: mordante
Date: Wed Aug 13 19:44:21 2008
New Revision: 28563

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28563&view=rev
Log:
Remove a cache variable, which is no longer with the pango render engine.

Modified:
    trunk/src/gui/widgets/control.cpp
    trunk/src/gui/widgets/control.hpp

Modified: trunk/src/gui/widgets/control.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/widgets/control.cpp?rev=28563&r1=28562&r2=28563&view=diff
==============================================================================
--- trunk/src/gui/widgets/control.cpp (original)
+++ trunk/src/gui/widgets/control.cpp Wed Aug 13 19:44:21 2008
@@ -44,7 +44,6 @@
        visible_(true),
        label_(),
        multiline_label_(false),
-       wrapped_label_(),
        tooltip_(),
        help_message_(),
        canvas_(canvas_count),
@@ -185,9 +184,6 @@
                canvas.set_height(rect.h);
        }
 
-       // clear the cache.
-       wrapped_label_.clear();
-       
        // inherited
        twidget::set_size(rect);
 }
@@ -199,7 +195,6 @@
        }
 
        label_ = label;
-       wrapped_label_.clear();
        set_canvas_text();
        set_dirty();
 }

Modified: trunk/src/gui/widgets/control.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/widgets/control.hpp?rev=28563&r1=28562&r2=28563&view=diff
==============================================================================
--- trunk/src/gui/widgets/control.hpp (original)
+++ trunk/src/gui/widgets/control.hpp Wed Aug 13 19:44:21 2008
@@ -207,15 +207,6 @@
        bool multiline_label_;
 
        /**
-        * Contains the wrapped text for a multiline label.
-        *
-        * This is a cache which contains the translated label text with extra 
line
-        * endings. The extra line endings are determined in the sizing code and
-        * which text will be rendered in the end.
-        */
-       std::string wrapped_label_;
-
-       /**
         * Tooltip text.
         *
         * The hovering event can cause a small tooltip to be shown, this is the


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to