[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#257398: [os@openoffice.org: [Issue 31059] dot makes crash in Table Object name (only caption dialog)]



Here is the fix from upstream
http://www.openoffice.org/issues/show_bug.cgi?id=31059

------- Additional comments from os@openoffice.org Wed Sep  1 03:42:57 -0700 2004 -------
Fixed in cws os36 in sw/source/ui/frmdlg/cption.cxx

As that IZ is targeted at OOo2.0 i made the attached patch against 113fix2
(but not committed). I have tested that this builds and fixes the problem in
113 but no qa is done. It prevents the forbidden keystrokes from being
entered. Thanks to os@openoffice.org


Index: cption.cxx
===================================================================
RCS file: /cvs/sw/sw/source/ui/frmdlg/cption.cxx,v
retrieving revision 1.12.160.1
diff -u -u -r1.12.160.1 cption.cxx
--- cption.cxx	9 Jan 2004 14:33:23 -0000	1.12.160.1
+++ cption.cxx	1 Sep 2004 12:07:25 -0000
@@ -302,7 +302,7 @@
 			xNamed = uno::Reference< container::XNamed >(xTmp, uno::UNO_QUERY);
 		}
 		aObjectNameED.SetText(sObjectName);
-		aObjectNameED.SetForbiddenChars(' ');
+		aObjectNameED.SetForbiddenChars(String::CreateFromAscii(" .<>"));
 		aObjectNameED.SetModifyHdl(LINK(this, SwCaptionDialog, ModifyHdl));
 	}
 

Reply to: