summaryrefslogtreecommitdiff
path: root/parttypes.cc
diff options
context:
space:
mode:
Diffstat (limited to 'parttypes.cc')
-rw-r--r--parttypes.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/parttypes.cc b/parttypes.cc
index 38b9193..9508933 100644
--- a/parttypes.cc
+++ b/parttypes.cc
@@ -510,10 +510,10 @@ void PartType::ShowAllTypes(int maxLines) const {
cout.unsetf(ios::uppercase);
if (maxLines > 0) {
cout << "Type search string, or <Enter> to show all codes: ";
- matchString = ReadString();
+ matchString = ToLower(ReadString());
} // if
while (thisType != NULL) {
- found = thisType->name.find(matchString);
+ found = ToLower(thisType->name).find(matchString);
if ((thisType->display == 1) && (found != string::npos)) { // show it
cout.fill('0');
cout.width(4);