Fix rpm build errors
authorPeng Huang <shawn.p.huang@gmail.com>
Fri, 26 Mar 2010 04:29:57 +0000 (12:29 +0800)
committerPeng Huang <shawn.p.huang@gmail.com>
Fri, 26 Mar 2010 04:32:38 +0000 (12:32 +0800)
ibus-pinyin.spec.in
src/DoublePinyinEditor.cc

index 0e87efb..0ed0fa9 100644 (file)
@@ -16,6 +16,7 @@ BuildRequires:  libtool
 BuildRequires:  pkgconfig
 BuildRequires:  sqlite-devel
 BuildRequires:  libuuid-devel
+BuildRequires:  libsigc++20-devel
 BuildRequires:  ibus-devel >= 1.2.0
 
 # Requires(post): sqlite
index 1843c3f..8bb7e81 100644 (file)
@@ -369,7 +369,7 @@ DoublePinyinEditor::updateAuxiliaryTextAfter (String &buffer)
         m_buffer << m_text << " ]";
     }
     else {
-        buffer.append (m_text, m_cursor);
+        buffer.append (m_text.c_str (), m_cursor);
         buffer << " ";
         buffer.append (m_text.c_str () + m_cursor);
         buffer << " ]";