From 3de412e4d5ab61b97a173637e6dfc26c79ade5ad Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 1 Dec 2012 12:01:24 +0100 Subject: [PATCH] Changed: Sorted landmarks --- code/ryzom/client/src/interface_v3/group_map.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/ryzom/client/src/interface_v3/group_map.cpp b/code/ryzom/client/src/interface_v3/group_map.cpp index 47b4afad1..4347a3380 100644 --- a/code/ryzom/client/src/interface_v3/group_map.cpp +++ b/code/ryzom/client/src/interface_v3/group_map.cpp @@ -3209,10 +3209,14 @@ class CAHValidateUserLandMarkName : public IActionHandler CGroupEditBox *eb = dynamic_cast(ig->getGroup("eb")); if (!eb) return; ig->setActive(false); + CGroupContainer *gc = dynamic_cast(im->getElementFromId(WIN_LANDMARK_NAME)); + if (!gc) return; + // Retrieve ComboBox to get the position(ordered landmark type) of the selected item + CDBGroupComboBox *cb = dynamic_cast(gc->getGroup("landmarktypes")); CUserLandMark::EUserLandMarkType landMarkType = CUserLandMark::Misc; - sint8 nLandMarkType = im->getDbProp( "UI:TEMP:LANDMARKTYPE" )->getValue8(); + sint8 nLandMarkType = cb->getTextId(im->getDbProp( "UI:TEMP:LANDMARKTYPE" )->getValue8()); if (nLandMarkType>=0 && nLandMarkType<=CUserLandMark::UserLandMarkTypeCount) { landMarkType = (CUserLandMark::EUserLandMarkType)nLandMarkType;