commit c2046bd19a0a89815fd3055edd46852bb0b3571a
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Tue Jul 21 11:36:49 2015 +0200

    Initialize correctly the default keymap
    
    If keymaps are activated and there is a secondary keymap but no
    primary one, then the pointer to the active keymap was 0x0. This can't
    be good.
    
    Fixes bug #9685.

diff --git a/src/Trans.cpp b/src/Trans.cpp
index 1f2b3a8..d4d4110 100644
--- a/src/Trans.cpp
+++ b/src/Trans.cpp
@@ -580,7 +580,7 @@ Trans TransManager::default_;
 
 
 TransManager::TransManager()
-       : active_(0)
+       : active_(&default_)
 {}
 
 
diff --git a/status.21x b/status.21x
index 38387e4..8e5e09f 100644
--- a/status.21x
+++ b/status.21x
@@ -255,6 +255,8 @@ What's new
 
 - Fix shortcut conflicts (bug 9567).
 
+- Fix crash when using a secondary keymap but no primary one (bug 9685).
+
 
 * INTERNALS
 

Reply via email to