mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix off by one error.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6024 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
8f3fbc2949
commit
b7ce28723c
@ -1,3 +1,8 @@
|
||||
2003-02-02 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* FormGraphics.C: Fix off by one error in update/apply of rotation
|
||||
origin.
|
||||
|
||||
2003-01-31 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* FormBase.[Ch]: instantiate the isVisible() virtual method.
|
||||
|
@ -402,7 +402,7 @@ void FormGraphics::apply()
|
||||
fl_set_input(extra_->input_rotate_angle, tostr(igp.rotateAngle).c_str());
|
||||
|
||||
int const origin_pos = fl_get_choice(extra_->choice_origin);
|
||||
if (origin_pos == 1) {
|
||||
if (origin_pos == 0) {
|
||||
igp.rotateOrigin.erase();
|
||||
} else {
|
||||
igp.rotateOrigin = origins_[origin_pos - 1];
|
||||
@ -486,7 +486,7 @@ void FormGraphics::update() {
|
||||
if (igp.rotateOrigin.empty()) {
|
||||
origin_pos = 1;
|
||||
} else {
|
||||
origin_pos = 2 + findPos(origins_, igp.rotateOrigin);
|
||||
origin_pos = 1 + findPos(origins_, igp.rotateOrigin);
|
||||
}
|
||||
fl_set_choice(extra_->choice_origin, origin_pos);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user