From fb5c6522005d08c547bf93cddfc9cd156a59fd81 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Tue, 22 Oct 2024 12:41:48 +0200 Subject: FLUID: quick fix for live preview of Grid: #1092 - Grid Type live preview support was not implemented - this is not a final fix, but just to avoid a crash - additional work needed for Flex and Grid --- fluid/Fl_Grid_Type.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'fluid/Fl_Grid_Type.cxx') diff --git a/fluid/Fl_Grid_Type.cxx b/fluid/Fl_Grid_Type.cxx index b27a8be7c..af1c6267e 100644 --- a/fluid/Fl_Grid_Type.cxx +++ b/fluid/Fl_Grid_Type.cxx @@ -291,6 +291,14 @@ Fl_Widget *Fl_Grid_Type::widget(int X,int Y,int W,int H) { return g; } +Fl_Widget *Fl_Grid_Type::enter_live_mode(int top) { + Fl_Grid *grid = new Fl_Grid(o->x(), o->y(), o->w(), o->h()); + return propagate_live_mode(grid); +} + +void Fl_Grid_Type::leave_live_mode() { +} + void Fl_Grid_Type::copy_properties() { super::copy_properties(); -- cgit v1.2.3