From 6653ac6b362cf88a6b77a4e8dd3c6926885c6b5f Mon Sep 17 00:00:00 2001 From: frosch Date: Wed, 14 Nov 2012 22:50:21 +0000 Subject: (svn r24739) -Codechange: Simplify some code by using Textbuf::Assign. --- src/genworld_gui.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/genworld_gui.cpp') diff --git a/src/genworld_gui.cpp b/src/genworld_gui.cpp index 1e6914696..a9fb68a05 100644 --- a/src/genworld_gui.cpp +++ b/src/genworld_gui.cpp @@ -547,8 +547,7 @@ struct GenerateLandscapeWindow : public QueryStringBaseWindow { case WID_GL_RANDOM_BUTTON: // Random seed _settings_newgame.game_creation.generation_seed = InteractiveRandom(); - snprintf(this->edit_str_buf, this->edit_str_size, "%u", _settings_newgame.game_creation.generation_seed); - this->text.UpdateSize(); + this->text.Print("%u", _settings_newgame.game_creation.generation_seed); this->SetDirty(); break; -- cgit v1.2.3-54-g00ecf