浏览代码

Export: Fix comma handling in feature list RTL

Fixes #62815.
Rémi Verschelde 3 年之前
父节点
当前提交
ba5049402a
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 4 3
      editor/project_export.cpp

+ 4 - 3
editor/project_export.cpp

@@ -366,16 +366,17 @@ void ProjectExportDialog::_update_feature_list() {
 	}
 
 	custom_feature_display->clear();
+	String text;
 	bool first = true;
 	for (const String &E : fset) {
-		String f = E;
 		if (!first) {
-			f += ", ";
+			text += ", ";
 		} else {
 			first = false;
 		}
-		custom_feature_display->add_text(f);
+		text += E;
 	}
+	custom_feature_display->add_text(text);
 }
 
 void ProjectExportDialog::_custom_features_changed(const String &p_text) {