summaryrefslogtreecommitdiff
path: root/win/Piececmb.cpp
diff options
context:
space:
mode:
authorleo2002-10-11 03:07:36 +0000
committerleo2002-10-11 03:07:36 +0000
commit82de444bdc1e2e344a1ccff7a5f73eb5d567a86d (patch)
tree6715fd99b97a6f9e7c683e9d79a194a6ff2252c6 /win/Piececmb.cpp
parentdf78d49b0fd34c50374485aa2c036780a0f7c073 (diff)
Made the auto-completion check if subparts are listed.
git-svn-id: http://svn.leocad.org/trunk@308 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'win/Piececmb.cpp')
-rw-r--r--win/Piececmb.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/win/Piececmb.cpp b/win/Piececmb.cpp
index afc07ca..3e02b7e 100644
--- a/win/Piececmb.cpp
+++ b/win/Piececmb.cpp
@@ -58,6 +58,9 @@ void CPiecesCombo::OnEditupdate()
{
pInfo = pLib->GetPieceInfo(i);
+ if ((pInfo->m_strDescription[0] == '~') && !pBar->m_bSubParts)
+ continue;
+
if (_strnicmp (str, pInfo->m_strDescription, n) == 0)
{
if (_stricmp (newstr, pInfo->m_strDescription) > 0)