fixed goToFlow (page 0 not allowed)

This commit is contained in:
Luis Ángel San Martín 2013-06-26 20:14:05 +02:00
parent 835c0fa0e7
commit 7b82b23962

View File

@ -111,10 +111,12 @@ void GoToFlowToolBar::resizeEvent(QResizeEvent * event)
void GoToFlowToolBar::goTo()
{
emit(goTo(edit->text().toInt()-1));
if(edit->text().toInt()!=0)
emit(goTo(edit->text().toInt()-1));
}
void GoToFlowToolBar::centerSlide()
{
emit(setCenter(edit->text().toInt()-1));
if(edit->text().toInt()!=0)
emit(setCenter(edit->text().toInt()-1));
}