From bd1d8bc19fa37d97e173917ff22b9f9fd175900e Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 17 May 2014 03:23:00 +0100 Subject: Misc --- distrho/src/DistrhoUIInternal.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'distrho/src/DistrhoUIInternal.hpp') diff --git a/distrho/src/DistrhoUIInternal.hpp b/distrho/src/DistrhoUIInternal.hpp index 26f1de8f..648694c7 100644 --- a/distrho/src/DistrhoUIInternal.hpp +++ b/distrho/src/DistrhoUIInternal.hpp @@ -255,6 +255,9 @@ public: void setSize(const uint width, const uint height) { + DISTRHO_SAFE_ASSERT_RETURN(fUi != nullptr,); + + fUi->setSize(width, height); glWindow.setSize(width, height); } @@ -283,13 +286,13 @@ protected: private: // ------------------------------------------------------------------- - // DGL Application and Window for this plugin + // DGL Application and Window for this widget DGL::App glApp; DGL::Window glWindow; // ------------------------------------------------------------------- - // private members accessed by DistrhoUI classes + // Widget and DistrhoUI data UI* const fUi; UI::PrivateData* const fData; -- cgit v1.2.3