3

Closed

Export works, but string isn't replaced and preview window doesn't display

description

Dothel posted the following fix which works for me. Hoping it can make it into the next build.
 
Hi, I had the same issue and found a bug in the changes that were made in this version to get support for xaml. this had a side effect on c# code.
 
To fix this, replace the line 419 of BaseHardCodedString.cs:
if (!reference.Equals(ns.NamespaceName) && reference.StartsWith(ns + ".") && ns.NamespaceName.Length > longestMatch.NamespaceName.Length)
 
with
 
if (!reference.Equals(ns.NamespaceName) && reference.StartsWith(ns + ".") && (longestMatch==null || ns.NamespaceName.Length > longestMatch.NamespaceName.Length))
 
longestMatch can be null at the beginning, which caused both preview and replace to not work.
Closed Jun 9, 2013 at 7:39 PM by Dzonny

comments

sidgrover wrote May 8, 2012 at 7:36 PM

Can someone please fix this particular issue please. It is causing C# editing with this good toll to become difficult. The main dialog is not saving settings apart from this behavior.

Dzonny wrote May 26, 2013 at 10:00 PM

Should be fixed by patch#11073