diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/lluploaddialog.cpp | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/newview/lluploaddialog.cpp')
-rw-r--r-- | linden/indra/newview/lluploaddialog.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/linden/indra/newview/lluploaddialog.cpp b/linden/indra/newview/lluploaddialog.cpp index edf5505..3cceea8 100644 --- a/linden/indra/newview/lluploaddialog.cpp +++ b/linden/indra/newview/lluploaddialog.cpp | |||
@@ -64,7 +64,7 @@ void LLUploadDialog::modalUploadFinished() | |||
64 | 64 | ||
65 | LLUploadDialog::LLUploadDialog( const std::string& msg) | 65 | LLUploadDialog::LLUploadDialog( const std::string& msg) |
66 | : | 66 | : |
67 | LLPanel( "Uploading...", LLRect(0,100,100,0) ) // dummy rect. Will reshape below. | 67 | LLPanel( std::string("Uploading..."), LLRect(0,100,100,0) ) // dummy rect. Will reshape below. |
68 | { | 68 | { |
69 | setBackgroundVisible( TRUE ); | 69 | setBackgroundVisible( TRUE ); |
70 | 70 | ||
@@ -78,14 +78,14 @@ LLUploadDialog::LLUploadDialog( const std::string& msg) | |||
78 | LLRect msg_rect; | 78 | LLRect msg_rect; |
79 | for (int line_num=0; line_num<16; ++line_num) | 79 | for (int line_num=0; line_num<16; ++line_num) |
80 | { | 80 | { |
81 | mLabelBox[line_num] = new LLTextBox( "Filename", msg_rect, "Filename", font ); | 81 | mLabelBox[line_num] = new LLTextBox( std::string("Filename"), msg_rect, std::string("Filename"), font ); |
82 | addChild(mLabelBox[line_num]); | 82 | addChild(mLabelBox[line_num]); |
83 | } | 83 | } |
84 | 84 | ||
85 | setMessage(msg); | 85 | setMessage(msg); |
86 | 86 | ||
87 | // The dialog view is a root view | 87 | // The dialog view is a root view |
88 | gViewerWindow->setTopCtrl( this ); | 88 | gFocusMgr.setTopCtrl( this ); |
89 | } | 89 | } |
90 | 90 | ||
91 | void LLUploadDialog::setMessage( const std::string& msg) | 91 | void LLUploadDialog::setMessage( const std::string& msg) |
@@ -116,9 +116,10 @@ void LLUploadDialog::setMessage( const std::string& msg) | |||
116 | char* token = strtok( temp_msg, "\n" ); | 116 | char* token = strtok( temp_msg, "\n" ); |
117 | while( token ) | 117 | while( token ) |
118 | { | 118 | { |
119 | S32 cur_width = S32(font->getWidth(token) + 0.99f) + TEXT_PAD; | 119 | std::string tokstr(token); |
120 | S32 cur_width = S32(font->getWidth(tokstr) + 0.99f) + TEXT_PAD; | ||
120 | max_msg_width = llmax( max_msg_width, cur_width ); | 121 | max_msg_width = llmax( max_msg_width, cur_width ); |
121 | msg_lines.push_back( std::string( token ) ); | 122 | msg_lines.push_back( tokstr ); |
122 | token = strtok( NULL, "\n" ); | 123 | token = strtok( NULL, "\n" ); |
123 | } | 124 | } |
124 | delete[] temp_msg; | 125 | delete[] temp_msg; |