From 58eb0c97bbc68edfa2eae8ff5ef92ec9437cdc26 Mon Sep 17 00:00:00 2001 From: Ykkrosh Date: Sat, 21 Apr 2012 13:09:01 +0000 Subject: [PATCH] Reuse terrain texture name formatting function This was SVN commit r11601. --- .../AtlasUI/ScenarioEditor/Sections/Terrain/Terrain.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Terrain/Terrain.cpp b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Terrain/Terrain.cpp index 3b71d48fa5..4a6171307f 100644 --- a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Terrain/Terrain.cpp +++ b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Terrain/Terrain.cpp @@ -485,11 +485,7 @@ public: for (size_t i = 0; i < m_TerrainGroups.GetCount(); ++i) { - wxString visibleName = m_TerrainGroups[i]; - // Format name slightly - if (visibleName.Len()) - visibleName[0] = wxToupper(visibleName[0]); - visibleName.Replace(_T("_"), _T(" ")); + wxString visibleName = FormatTextureName(m_TerrainGroups[i]); AddPage(new TextureNotebookPage(m_ScenarioEditor, this, m_TerrainGroups[i]), visibleName); }