[Wine-devel] Eter's patch is applied to winehq repo 05/01/13

builder-robot на etersoft.ru builder-robot на etersoft.ru
Ср Май 1 22:30:35 MSK 2013


New Etersoft's patches since last build time:
commit 8849885f73921db8ba138fd56c3f448382404acc
Author: Sergey Guralnik <serhio на etersoft.ru>

    riched20: Fix richtext copy/paste to OOffice.

---

commit 8849885f73921db8ba138fd56c3f448382404acc
Author: Sergey Guralnik <serhio на etersoft.ru>
Date:   Tue Apr 30 09:06:06 2013 +0300

    riched20: Fix richtext copy/paste to OOffice.

diff --git a/dlls/riched20/writer.c b/dlls/riched20/writer.c
index 440cb1b..6a4538c 100644
--- a/dlls/riched20/writer.c
+++ b/dlls/riched20/writer.c
@@ -297,6 +297,14 @@ ME_StreamOutRTFFontAndColorTbl(ME_OutStream *pStream, ME_DisplayItem *pFirstRun,
   if (!ME_StreamOutPrint(pStream, "}\r\n"))
     return FALSE;
 
+  /* It seems like Open Office ignores \deff0 tag at RTF-header.
+     As result it can't correctly parse text before first \fN tag,
+     so we can put \f0 immediately after font table. This forces
+     parser to use the same font, that \deff0 specifies.
+     It makes OOffice happy */
+  if (!ME_StreamOutPrint(pStream, "\\f0"))
+    return FALSE;
+
   /* Output the color table */
   if (!ME_StreamOutPrint(pStream, "{\\colortbl;")) return FALSE; /* first entry is auto-color */
   for (i = 1; i < pStream->nColorTblLen; i++)


Подробная информация о списке рассылки Wine-devel