Bug #1421: Fixed the pagination bug when indenting nodes into containers on previous pages

FEA: ItEr76S04BugFixing
This commit is contained in:
Lorenzo Tilve Álvaro 2012-05-02 19:40:37 +02:00
parent 2e1a1fcbf1
commit fa0ea4e30a

View file

@ -4,7 +4,7 @@
* Copyright (C) 2009-2010 Fundación para o Fomento da Calidade Industrial e
* Desenvolvemento Tecnolóxico de Galicia
*
* Copyright (C) 2011 Igalia S.L
* Copyright (C) 2011-2012 Igalia S.L
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
@ -92,7 +92,11 @@ public abstract class TreeElementOperationsController<T> {
public void indentSelectedElement() {
if (tree.getSelectedCount() == 1) {
int page = tree.getActivePage();
indent(getSelectedElement());
if (tree.getPageCount() > page) {
tree.setActivePage(page);
}
} else {
showSelectAnElementError();
}