diff --git a/src/scenedit/scen.actions.cpp b/src/scenedit/scen.actions.cpp index f30c3dc6..f9432a49 100644 --- a/src/scenedit/scen.actions.cpp +++ b/src/scenedit/scen.actions.cpp @@ -2750,35 +2750,35 @@ void start_string_editing(eStrMode mode,short just_redo_text) { std::ostringstream str; switch(mode) { case 0: - str << i << " - " << scenario.spec_strs[i].substr(0,30); + str << i << " - " << scenario.spec_strs[i]; set_rb(i,RB_SCEN_STR, i,str.str()); break; case 1: - str << i << " - " << current_terrain->spec_strs[i].substr(0,30); + str << i << " - " << current_terrain->spec_strs[i]; set_rb(i,RB_OUT_STR, i,str.str()); break; case 2: - str << i << " - " << town->spec_strs[i].substr(0,30); + str << i << " - " << town->spec_strs[i]; set_rb(i,RB_TOWN_STR, i,str.str()); break; case 3: - str << i << " - " << scenario.journal_strs[i].substr(0,30); + str << i << " - " << scenario.journal_strs[i]; set_rb(i,RB_JOURNAL, i,str.str()); break; case 4: - str << i << " - " << current_terrain->sign_locs[i].text.substr(0,30); + str << i << " - " << current_terrain->sign_locs[i]; set_rb(i,RB_OUT_SIGN, i,str.str()); break; case 5: - str << i << " - " << town->sign_locs[i].text.substr(0,30); + str << i << " - " << town->sign_locs[i].text; set_rb(i,RB_TOWN_SIGN, i,str.str()); break; case 6: - str << i << " - " << current_terrain->area_desc[i].descr.substr(0,30); + str << i << " - " << current_terrain->area_desc[i]; set_rb(i,RB_OUT_RECT, i,str.str()); break; case 7: - str << i << " - " << town->area_desc[i].descr.substr(0,30); + str << i << " - " << town->area_desc[i].descr; set_rb(i,RB_TOWN_RECT, i,str.str()); break; } diff --git a/src/scenedit/scen.graphics.cpp b/src/scenedit/scen.graphics.cpp index 0769c0fd..ede8873a 100644 --- a/src/scenedit/scen.graphics.cpp +++ b/src/scenedit/scen.graphics.cpp @@ -516,7 +516,7 @@ void draw_rb_slot (short which,short mode) { style.colour = Colours::GREEN; style.lineHeight = 12; - win_draw_string(mainPtr(),text_rect,right_button_status[which].label,eTextMode::WRAP,style); + win_draw_string(mainPtr(),text_rect,right_button_status[which].label,eTextMode::ELLIPSIS,style); } void set_up_terrain_buttons(bool reset) {