Skip to content

Commit

Permalink
Fix unsupported negative numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
programmer2514 committed Oct 12, 2022
1 parent 0d49778 commit 9caba42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DPEdit/DPEdit/DPEdit.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*--------------------------------------------------------------
| Display Position Editor v1.2.1 |
| Display Position Editor v1.2.2 |
| By Benjamin J. Pryor |
|--------------------------------------------------------------|
| A simple command line utility to accurately set the relative |
Expand Down Expand Up @@ -100,7 +100,7 @@ void list_displays(void) {
}

void show_help(void) {
cout << endl << "DPEdit 1.2.1" << endl;
cout << endl << "DPEdit 1.2.2" << endl;
cout << "A command line utility to accurately position displays in a multi-monitor setup." << endl << endl;
cout << "Usage: dpedit.exe [/H] [/?]" << endl;
cout << " dpedit.exe /L" << endl;
Expand All @@ -121,5 +121,5 @@ void show_help(void) {
}

bool is_valid_int(string s) {
return !s.empty() && (s.find_first_not_of("0123456789") == string::npos);
return !s.empty() && (s.find_first_not_of("-0123456789") == string::npos);
}

0 comments on commit 9caba42

Please sign in to comment.