+1999-10-07 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * src/insets/insetquotes.C (Draw): Simplified a gread deal. This
+ also fixes a bug. It is not allowed to do tricks with std::strings
+ like: string a("hei"); &a[e]; this will not give what you
+ think... Any reason for the complexity in this func?
+
1999-10-06 Asger Alstrup Nielsen <alstrup@diku.dk>
* Updated README and INSTALL a bit, mostly to check that my
1999-10-06 Asger Alstrup Nielsen <alstrup@diku.dk>
* Updated README and INSTALL a bit, mostly to check that my
- disp += quote_char[quote_index[side][language]];
-
+ disp = quote_char[quote_index[side][language]];
if (times == InsetQuotes::DoubleQ)
disp += disp;
if (times == InsetQuotes::DoubleQ)
disp += disp;
{
string text = DispString();
{
string text = DispString();
- for (string::size_type i = 0; i < text.length(); ++i) {
- if (text[i] == ' ')
- x += font.width('i');
- else if (i == text.length()-1 || text[i] != text[i+1]) {
- scr.drawString(font, &text[i], baseline, int(x));
- x += font.width(text[i]);
- } else {
- scr.drawString(font, &text[i+1], baseline, int(x));
- x += font.width(',');
- }
- }
-
+ scr.drawString(font, text, baseline, int(x));
+ x += Width(font);