mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Allow negative values for counters
enumi, for example, can be negative.
This commit is contained in:
parent
e481981dea
commit
21eb2c4f74
@ -143,10 +143,8 @@ bool GuiCounter::checkWidgets(bool readonly) const
|
||||
counterCB->setEnabled(!readonly);
|
||||
actionCB->setEnabled(!readonly);
|
||||
valueSB->setEnabled(!readonly && (cmdIsSet || cmdIsAddTo));
|
||||
if (cmdIsAddTo)
|
||||
valueSB->setRange(-10000, 10000);
|
||||
else
|
||||
valueSB->setRange(0, 10000);
|
||||
// enumi, for example, can be negative.
|
||||
valueSB->setRange(-10000, 10000);
|
||||
|
||||
return InsetParamsWidget::checkWidgets() && !readonly &&
|
||||
!counterCB->currentText().isEmpty() &&
|
||||
|
Loading…
Reference in New Issue
Block a user