Bookmark with longer than 30 char names wouldn't reload. Heres a
patch, and removes a compier warning.

Sincerely,

Adrian Phillips

diff -c -r1.573 fv_View.cpp
*** fv_View.cpp 26 Jan 2002 23:41:13 -0000      1.573
--- fv_View.cpp 27 Jan 2002 13:23:01 -0000
***************
*** 2158,2164 ****
--- 2158,2166 ----
        m_pDoc->beginUserAtomicGlob();
  
        char margin_left [] = "margin-left";
+ #ifdef BIDI_ENABLED
        char margin_right[] = "margin-right";
+ #endif
  
        for(i=0; i< vBlock.getItemCount(); i++)
        {
***************
*** 8867,8872 ****
--- 8869,8875 ----
        XML_Char name_l [] = "name";
        XML_Char type_l [] = "type";
        XML_Char name[BOOKMARK_NAME_SIZE + 1];
+       name[BOOKMARK_NAME_SIZE] = 0;
        UT_XML_strncpy(name, BOOKMARK_NAME_SIZE, (XML_Char*)szName);
  
        XML_Char type[] = "start";


-- 
Your mouse has moved.
Windows NT must be restarted for the change to take effect.
Reboot now?  [OK]

Reply via email to