From 7a270ff9c08028de5edf5e80c44f084c4f323cfa Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 10 Dec 2016 13:08:39 +0100 Subject: [PATCH] Changed: Use addSlashR to replace \n by \r\n --- .../leveldesign/georges_dll/base_dialog.cpp | 16 ++-------------- .../tools/leveldesign/georges_dll/base_dialog.h | 2 +- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/code/ryzom/tools/leveldesign/georges_dll/base_dialog.cpp b/code/ryzom/tools/leveldesign/georges_dll/base_dialog.cpp index a2cf3c559..de8ccdf68 100644 --- a/code/ryzom/tools/leveldesign/georges_dll/base_dialog.cpp +++ b/code/ryzom/tools/leveldesign/georges_dll/base_dialog.cpp @@ -230,21 +230,9 @@ BOOL CBaseDialog::PreTranslateMessage(MSG* pMsg) return CDialog::PreTranslateMessage(pMsg); } -void CBaseDialog::setEditTextMultiLine (CEdit &edit, const char *text) +void CBaseDialog::setEditTextMultiLine (CEdit &edit, const std::string &text) { - string temp; - uint size = strlen (text); - temp.reserve (2*size); - bool previousR=false; - for (uint c=0; c