*/
#include <config.h>
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include FORMS_H_LOCATION
#include "support/lstrings.h"
#include "input_validators.h"
That might be acceptable if there was a "to_page"
entry however if you start making a page range in the "from"
field you can do it all in the "from" field. That is, a
- range in the "from" field immmediately blanks the "to"
+ range in the "from" field immmediately blanks the "to"
field. */
}
return FL_INVALID|FL_RINGBELL;
code below. */
string pages = subst(fl_get_input(fd_form_print->input_pages), ';',',');
- pages = subst(pages, '+',',');
- pages = frontStrip(strip(pages)) ;
+ pages = trim(subst(pages, '+', ','));
+
while (!pages.empty()) { // a page range was given
string piece ;
pages = split (pages, piece, ',') ;
- piece = strip(piece) ;
- piece = frontStrip(piece) ;
+ piece = trim(piece);
if (!stringOnlyContains (piece, "0123456789-")) {
Alert::alert(_("ERROR! Unable to print!"),
_("Check 'range of pages'!"));
}
}
}
-#endif
+#endif
#if defined(__cplusplus)
}