mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-18 21:45:24 +00:00
Squash a bug spotted by Udo M��ller in the XForms find & replace dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_3_X@10349 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f40fbc05ab
commit
effca152ba
@ -1,3 +1,7 @@
|
||||
2005-07-22 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* FormSearch.C (input): do not trim the find and replace strings.
|
||||
|
||||
2005-07-04 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
||||
|
||||
* FormToc.C: consider gui name, not type, when trying to set the
|
||||
@ -124,7 +128,7 @@
|
||||
* forms/form_maths_panel.fd (label): replace label "Greek" by
|
||||
"abg" for alpha beta gamma.
|
||||
|
||||
* forms/form_tabular.fd (label):
|
||||
* forms/form_tabular.fd (label):
|
||||
* FormDocument.C (build): remove use of latin1 in
|
||||
some translatable strings. This confuses gettext.
|
||||
|
||||
@ -139,7 +143,7 @@
|
||||
2003-05-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||
|
||||
* forms/Makefile.am (EXTRA_DIST): do not forget to distribute
|
||||
c_str.sed.
|
||||
c_str.sed.
|
||||
|
||||
2003-04-09 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
@ -167,7 +171,7 @@
|
||||
|
||||
2003-03-13 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* forms/fdfix.sh:
|
||||
* forms/fdfix.sh:
|
||||
* forms/fdfixh.sed: fix #944 by making the temporary filenames unique
|
||||
and so enable reentrant builds on SMP machines.
|
||||
|
||||
@ -193,7 +197,7 @@
|
||||
|
||||
2003-02-10 Juergen Spitzmueller <j.spitzmueller@gmx.de>
|
||||
|
||||
* FormDocument.C: Reset paperpackage to NONE when
|
||||
* FormDocument.C: Reset paperpackage to NONE when
|
||||
papersize != A4 (bug 844)
|
||||
|
||||
2003-01-31 Michael Schmitt <michael.schmitt@teststep.org>
|
||||
|
@ -15,7 +15,6 @@
|
||||
#include "FormSearch.h"
|
||||
#include "forms/form_search.h"
|
||||
#include "Tooltips.h"
|
||||
#include "xforms_helpers.h"
|
||||
|
||||
#include FORMS_H_LOCATION
|
||||
|
||||
@ -65,10 +64,24 @@ void FormSearch::update()
|
||||
}
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
string const getUntrimmedString(FL_OBJECT * ob)
|
||||
{
|
||||
lyx::Assert(ob->objclass == FL_INPUT);
|
||||
|
||||
char const * const tmp = fl_get_input(ob);
|
||||
return tmp ? tmp : string();
|
||||
}
|
||||
|
||||
} // namespace anon
|
||||
|
||||
|
||||
|
||||
ButtonPolicy::SMInput FormSearch::input(FL_OBJECT * ob, long)
|
||||
{
|
||||
if (ob == dialog_->button_findnext) {
|
||||
controller().find(getString(dialog_->input_search),
|
||||
controller().find(getUntrimmedString(dialog_->input_search),
|
||||
fl_get_button(dialog_->check_casesensitive),
|
||||
fl_get_button(dialog_->check_matchword),
|
||||
!fl_get_button(dialog_->check_searchbackwards));
|
||||
@ -76,8 +89,8 @@ ButtonPolicy::SMInput FormSearch::input(FL_OBJECT * ob, long)
|
||||
} else if (ob == dialog_->button_replace || ob == dialog_->button_replaceall) {
|
||||
bool const all = (ob == dialog_->button_replaceall);
|
||||
|
||||
controller().replace(getString(dialog_->input_search),
|
||||
getString(dialog_->input_replace),
|
||||
controller().replace(getUntrimmedString(dialog_->input_search),
|
||||
getUntrimmedString(dialog_->input_replace),
|
||||
fl_get_button(dialog_->check_casesensitive),
|
||||
fl_get_button(dialog_->check_matchword),
|
||||
all);
|
||||
|
@ -37,6 +37,9 @@ What's new
|
||||
- The Return key is no longer bound to the Goto button in the reference
|
||||
dialog. [Qt only].
|
||||
|
||||
- Do not trim spaces from either end of the find and replace strings in
|
||||
the Edit->Find & Replace... dialog. [XForms only].
|
||||
|
||||
* Configuration/Installation:
|
||||
|
||||
- compile without STL compatibilty support, since some systems do that
|
||||
|
Loading…
x
Reference in New Issue
Block a user