diff options
Diffstat (limited to 'board-fix-segfault.patch')
-rw-r--r-- | board-fix-segfault.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/board-fix-segfault.patch b/board-fix-segfault.patch new file mode 100644 index 000000000000..6c30d4ae16f9 --- /dev/null +++ b/board-fix-segfault.patch @@ -0,0 +1,29 @@ +--- src/Board.cc.orig 2018-02-07 16:46:27.000000000 +0100 ++++ src/Board.cc 2021-02-02 11:28:52.653930660 +0100 +@@ -301,8 +301,13 @@ + { +- //if(ui_pixmap) +- // return true; ++ if (!get_mapped()) ++ return false; ++ if (ui_pixmap) { ++ int w,h; ++ ui_pixmap->get_size(w,h); ++ if (get_width() == w || get_height() == h) ++ return false; ++ } + ui_pixmap = Gdk::Pixmap::create(this->get_window(),get_width(),get_height()); +- + redraw(); +- ++ return false; + } +@@ -317,4 +322,8 @@ + } ++ + void Board::redraw() + { ++ if (!ui_pixmap) ++ return; ++ + draw_bg(); |