Author: mordante
Date: Sun Aug 17 20:00:15 2008
New Revision: 28683
URL: http://svn.gna.org/viewcvs/wesnoth?rev=28683&view=rev
Log:
Made the fontsize of a text mandatory.
Modified:
trunk/src/gui/widgets/canvas.cpp
Modified: trunk/src/gui/widgets/canvas.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/widgets/canvas.cpp?rev=28683&r1=28682&r2=28683&view=diff
==============================================================================
--- trunk/src/gui/widgets/canvas.cpp (original)
+++ trunk/src/gui/widgets/canvas.cpp Sun Aug 17 20:00:15 2008
@@ -757,7 +757,7 @@
* y (f_unsigned = 0) The y coordinate of the top left corner.
* w (f_unsigned = 0) The width of the rectangle.
* h (f_unsigned = 0) The height of the rectangle.
- * font_size (unsigned = 0) The size of the font to draw in.
+ * font_size (unsigned) The size of the font to draw in.
* font_style (font_style = "") The style of the text.
* colour (colour = "") The colour of the text.
* text (tstring = "") The text to draw (translatable).
@@ -776,6 +776,8 @@
* Also the general variables are available, see [[#general_variables|Line]].
*
*/
+
+ VALIDATE(font_size_, _("Text has a font size of 0."));
const std::string& debug = (cfg["debug"]);
if(!debug.empty()) {
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits