X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fxforms%2FFormParagraph.C;h=66e2b819e701a5e399fe4f7df3e7e7c5f2c2a576;hb=eba67bc3120dc301bf193c3f3b570f51f00a4654;hp=67f49a8d430474781abcab76ab418aada9e1bc4d;hpb=adaef99e60e28eba8c413a3472cc71e234718af0;p=lyx.git diff --git a/src/frontends/xforms/FormParagraph.C b/src/frontends/xforms/FormParagraph.C index 67f49a8d43..66e2b819e7 100644 --- a/src/frontends/xforms/FormParagraph.C +++ b/src/frontends/xforms/FormParagraph.C @@ -49,6 +49,19 @@ FormParagraph::~FormParagraph() } +void FormParagraph::redraw() +{ + if( form() && form()->visible ) + fl_redraw_form( form() ); + else + return; + + FL_FORM * outer_form = fl_get_active_folder(dialog_->tabbed_folder); + if (outer_form && outer_form->visible) + fl_redraw_form( outer_form ); +} + + FL_FORM * FormParagraph::form() const { if (dialog_) return dialog_->form; @@ -65,7 +78,7 @@ void FormParagraph::build() minw_ = form()->w; minh_ = form()->h; - // manage the restore, ok, apply and cancel/close buttons + // Manage the ok, apply, restore and cancel/close buttons bc_.setOK(dialog_->button_ok); bc_.setApply(dialog_->button_apply); bc_.setCancel(dialog_->button_cancel);