]> git.lyx.org Git - features.git/commitdiff
Fix bug in 81badf: char_type and double do not have the same size
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 24 Nov 2014 21:51:12 +0000 (22:51 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 24 Nov 2014 21:51:12 +0000 (22:51 +0100)
src/ParagraphMetrics.cpp

index a911d145773c558cc311bc54a1af16d90f2263b8..0e37c5f5d9b2e139bba01288b1c83cf0eace2891 100644 (file)
@@ -105,7 +105,8 @@ size_t ParagraphMetrics::computeRowSignature(Row const & row,
                                static_cast<char_type>(row.sel_end),
                                row.begin_margin_sel,
                                row.end_margin_sel,
-                               row.separator,
+                               reinterpret_cast<char_type const *>(&row.separator)[0],
+                               reinterpret_cast<char_type const *>(&row.separator)[1],
                                d.wid, d.asc, d.des };
        crc.process_bytes(b, sizeof(b));