]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormToc.C
More pref work from Angus
[lyx.git] / src / frontends / xforms / FormToc.C
index 2e5111cde5188320429e84f0e2b84d7ffbfb6603..40ca12b59567fa5dde0ab9848f1c7adbaf55da20 100644 (file)
@@ -66,15 +66,19 @@ void FormToc::disconnect()
 void FormToc::build()
 {
        dialog_ = build_toc();
+
        fl_addto_choice(dialog_->type,
                        _(" TOC | LOF | LOT | LOA "));
 
        // Don't need to limit size of this dialog
+       // (but fixing min size is a GOOD thing).
+       // Workaround dumb xforms sizing bug
+       minw_ = form()->w;
+       minh_ = form()->h;
 }
 
 
-// we can safely ignore the parameter because we can always update
-void FormToc::update(bool)
+void FormToc::update()
 {
        Buffer::TocType type;