Blob Blame History Raw
--- k3d-0.6.5.0/ngui/viewport.cpp.orig	2006-12-29 09:39:45.000000000 +0100
+++ k3d-0.6.5.0/ngui/viewport.cpp	2006-12-29 09:40:22.000000000 +0100
@@ -682,7 +682,8 @@
 void control::on_style_changed(const Glib::RefPtr<Gtk::Style>& previous_style)
 {
 	base::on_style_changed(previous_style);
-	glDeleteLists(m_implementation->m_font_begin, m_implementation->m_font_end - m_implementation->m_font_begin);
+	if (m_implementation->m_font_begin != m_implementation->m_font_end)
+		glDeleteLists(m_implementation->m_font_begin, m_implementation->m_font_end - m_implementation->m_font_begin);
 }
 
 void control::create_font()