therion (5.3.3-1) 82-nolang-segfault-fix.patch

Summary

 thlayout.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

    
download this patch

Patch contents

Index: therion-5.3.3/thlayout.cxx
===================================================================
--- therion-5.3.3.orig/thlayout.cxx	2010-06-01 12:49:43.000000000 +0100
+++ therion-5.3.3/thlayout.cxx	2010-06-06 23:48:12.000000000 +0100
@@ -2028,7 +2028,7 @@
   LAYOUT.preview_below_b = this->color_preview_below.B;
   
   LAYOUT.lang = this->lang;
-  LAYOUT.langstr = thlang_getid(this->lang);
+  LAYOUT.langstr = (this->lang == -1 ? "en" : thlang_getid(this->lang));
 }