Bug #1421: Fixed the pagination bug when indenting nodes into containers on previous pages
FEA: ItEr76S04BugFixing
This commit is contained in:
parent
2e1a1fcbf1
commit
fa0ea4e30a
1 changed files with 5 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue