diff options
Diffstat (limited to 'src/gui/windows')
-rw-r--r-- | src/gui/windows/charcreatedialog.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/windows/charcreatedialog.cpp b/src/gui/windows/charcreatedialog.cpp index 890abfe22..49eacd93e 100644 --- a/src/gui/windows/charcreatedialog.cpp +++ b/src/gui/windows/charcreatedialog.cpp @@ -527,7 +527,7 @@ void CharCreateDialog::setAttributes(const StringVect &labels, mAttributeValue.resize(labels.size()); const int w = 480; - const int h = 350; + int h = 350; const int y = 118 + 29; for (unsigned i = 0, sz = static_cast<unsigned>(labels.size()); @@ -551,6 +551,12 @@ void CharCreateDialog::setAttributes(const StringVect &labels, } updateSliders(); + if (!available) + { + mAttributesLeft->setVisible(false); + h = y; + setContentSize(w, h); + } setButtonsPosition(w, h); } |