]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/input_validators.C
Yet more dialog tweaking from Rob.
[lyx.git] / src / frontends / xforms / input_validators.C
index ae1e3ad3a8b6d09e0c2c5e7442bc46ef789e0e6a..3cb159ba213457fd7caefa6b2ba382b44d08187e 100644 (file)
@@ -116,13 +116,12 @@ void fl_print_range_filter(FL_OBJECT * ob,
           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'!"));