Andre Poenitz wrote:
On Sun, Nov 18, 2007 at 10:49:58PM +0100, Abdelrazak Younes wrote:
http://www.lyx.org/trac/file/lyx-devel/trunk/src/ParagraphMetrics.cpp?rev=21666
==============================================================================
--- lyx-devel/trunk/src/ParagraphMetrics.cpp (original)
+++ lyx-devel/trunk/src/ParagraphMetrics.cpp Sun Nov 18 22:47:46 2007
@@ -103,17 +103,20 @@
        boost::crc_32_type crc;
        for (pos_type i = row.pos(); i < row.endpos(); ++i) {
                char_type const b[] = { par_->getChar(i) };
-               crc.process_bytes(b, 1);
+               // char_type is 4 bytes!
+               crc.process_bytes(b, 4);

Wouldn't  sizeof(char_type)  make that clear?

Indeed.

Reply via email to