Fixed issue #1360 (LayoutViewBase not promoted to LayoutView). Problem was that GSI binding of LayoutView happened before LayoutView was fully constructed.

This commit is contained in:
Matthias Koefferlein
2023-05-09 20:06:34 +02:00
parent 34d147f1ce
commit df7311ddf7
5 changed files with 21 additions and 15 deletions
@@ -260,8 +260,6 @@ LayoutViewBase::LayoutViewBase (lay::LayoutView *ui, db::Manager *manager, bool
{
// either it's us or the parent has a dispatcher
tl_assert (dispatcher () != 0);
init (manager);
}
void
+7 -7
View File
@@ -192,11 +192,6 @@ public:
*/
LayoutViewBase (db::Manager *mgr, bool editable, lay::Plugin *plugin_parent, unsigned int options = (unsigned int) LV_Normal);
/**
* @brief Constructor
*/
LayoutViewBase (lay::LayoutView *ui, db::Manager *mgr, bool editable, lay::Plugin *plugin_parent, unsigned int options = (unsigned int) LV_Normal);
/**
* @brief Destructor
*/
@@ -2861,8 +2856,6 @@ private:
tl::Clock m_clock, m_last_checked;
void init (db::Manager *mgr);
void do_prop_changed ();
void do_redraw (int layer);
void do_redraw ();
@@ -2891,6 +2884,13 @@ private:
void merge_dither_pattern (lay::LayerPropertiesList &props);
protected:
/**
* @brief Constructor for calling from a LayoutView
*/
LayoutViewBase (lay::LayoutView *ui, db::Manager *mgr, bool editable, lay::Plugin *plugin_parent, unsigned int options = (unsigned int) LV_Normal);
void init (db::Manager *mgr);
lay::Plugin *active_plugin () const
{
return mp_active_plugin;