diff --git a/src/gtk/notebook.cpp b/src/gtk/notebook.cpp index 4e86999f34..a47d136a1e 100644 --- a/src/gtk/notebook.cpp +++ b/src/gtk/notebook.cpp @@ -483,10 +483,7 @@ bool wxNotebook::InsertPage( size_t position, } #endif - if (select && GetPageCount() > 1) - { - SetSelection( position ); - } + DoSetSelectionAfterInsertion(position, select); InvalidateBestSize(); return true;