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:
Angus Leeming 2003-02-04 11:40:06 +00:00
parent 8f3fbc2949
commit b7ce28723c
2 changed files with 7 additions and 2 deletions

View File

@ -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.

View File

@ -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);