mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-12 16:50:39 +00:00
fix bug 490; fix backward/forward search
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH-1_2_X@5871 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
6b93dc8b8a
commit
85bf978cf6
@ -1,3 +1,12 @@
|
||||
2002-12-18 Juergen Spitzmueller <j.spitzmueller@gmx.de>
|
||||
|
||||
* lyxlength.[Ch]: set default unit to UNIT_NONE,
|
||||
implement bool empty() [bug 490]
|
||||
|
||||
2002-12-17 Alfredo Braunstein <abraunst@libero.it>
|
||||
|
||||
* lyxfunc.C: correct inversion of WORDFINDBACK/FORWARD
|
||||
|
||||
2002-12-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
|
||||
|
||||
* version.C.in: update (again) release date for 1.2.2
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-12-18 Juergen Spitzmueller <j.spitzmueller@gmx.de>
|
||||
|
||||
* xforms_helpers.C: (updateWidgetsFromLength)
|
||||
use len.empty() instead of len.zero() [bug 490]
|
||||
|
||||
2002-10-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
|
||||
|
||||
* xformsGImage.C (getWidth): add 4 instead of 2 in the fix below,
|
||||
|
@ -201,7 +201,7 @@ void updateWidgetsFromLength(FL_OBJECT * input, FL_OBJECT * choice,
|
||||
lyx::Assert(input && input->objclass == FL_INPUT &&
|
||||
choice && choice->objclass == FL_CHOICE);
|
||||
|
||||
if (len.zero()) {
|
||||
if (len.empty()) {
|
||||
fl_set_input(input, "");
|
||||
fl_set_choice_text(choice, default_unit.c_str());
|
||||
} else {
|
||||
|
@ -1045,7 +1045,7 @@ string const LyXFunc::dispatch(kb_action action, string argument)
|
||||
} else {
|
||||
searched_string = last_search;
|
||||
}
|
||||
bool fw = (action == LFUN_WORDFINDBACKWARD);
|
||||
bool fw = (action == LFUN_WORDFINDFORWARD);
|
||||
if (!searched_string.empty()) {
|
||||
lyxfind::LyXFind(owner->view(), searched_string, fw);
|
||||
}
|
||||
|
@ -27,7 +27,7 @@
|
||||
using std::abs;
|
||||
|
||||
LyXLength::LyXLength()
|
||||
: val_(0), unit_(LyXLength::PT)
|
||||
: val_(0), unit_(LyXLength::UNIT_NONE)
|
||||
{}
|
||||
|
||||
|
||||
@ -160,6 +160,12 @@ bool LyXLength::zero() const
|
||||
}
|
||||
|
||||
|
||||
bool LyXLength::empty() const
|
||||
{
|
||||
return unit_ == LyXLength::UNIT_NONE;
|
||||
}
|
||||
|
||||
|
||||
int LyXLength::inPixels(int default_width, int default_height) const
|
||||
{
|
||||
// Zoom factor specified by user in percent
|
||||
|
@ -63,6 +63,8 @@ public:
|
||||
void unit(LyXLength::UNIT unit);
|
||||
///
|
||||
bool zero() const;
|
||||
///
|
||||
bool empty() const;
|
||||
/// return string representation
|
||||
string const asString() const;
|
||||
/// return string representation for LaTeX
|
||||
|
@ -22,4 +22,10 @@ What's new
|
||||
|
||||
** Bug fixes
|
||||
|
||||
- fix problem where it was not possible to force some values to 0 in
|
||||
custom margins
|
||||
|
||||
- fix functions word-find-forward and word-find-backward, which
|
||||
meaning was inverted
|
||||
|
||||
- fix an installation issue with solaris
|
||||
|
Loading…
Reference in New Issue
Block a user