diff --git a/Antidote Verifier/Sdl.Community.AntidoteVerifier/Sdl.Community.AntidoteVerifier/Extensions/SegmentExtensions.cs b/Antidote Verifier/Sdl.Community.AntidoteVerifier/Sdl.Community.AntidoteVerifier/Extensions/SegmentExtensions.cs index 07d9977b1..e760f189e 100644 --- a/Antidote Verifier/Sdl.Community.AntidoteVerifier/Sdl.Community.AntidoteVerifier/Extensions/SegmentExtensions.cs +++ b/Antidote Verifier/Sdl.Community.AntidoteVerifier/Sdl.Community.AntidoteVerifier/Extensions/SegmentExtensions.cs @@ -93,6 +93,13 @@ public static void Replace(this ISegment segment, int startIndex, int endPositio break; } + + if (currentIndex <= startIndex && currentIndex + elementLength == endPosition) + { + var beforeText = textElement.Properties.Text.Substring(0, startIndex - currentIndex); + textElement.Properties.Text = beforeText + replacementText; + } + currentIndex += elementLength; } else diff --git a/Antidote Verifier/Sdl.Community.AntidoteVerifier/Sdl.Community.AntidoteVerifier/Properties/AssemblyInfo.cs b/Antidote Verifier/Sdl.Community.AntidoteVerifier/Sdl.Community.AntidoteVerifier/Properties/AssemblyInfo.cs index ece1de027..7cc0a35bc 100644 --- a/Antidote Verifier/Sdl.Community.AntidoteVerifier/Sdl.Community.AntidoteVerifier/Properties/AssemblyInfo.cs +++ b/Antidote Verifier/Sdl.Community.AntidoteVerifier/Sdl.Community.AntidoteVerifier/Properties/AssemblyInfo.cs @@ -28,4 +28,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("4.0.0.0")] -[assembly: AssemblyFileVersion("4.0.3.0")] +[assembly: AssemblyFileVersion("4.0.3.1")] diff --git a/Antidote Verifier/Sdl.Community.AntidoteVerifier/Sdl.Community.AntidoteVerifier/pluginpackage.manifest.xml b/Antidote Verifier/Sdl.Community.AntidoteVerifier/Sdl.Community.AntidoteVerifier/pluginpackage.manifest.xml index 747c1e22b..52fbc0cac 100644 --- a/Antidote Verifier/Sdl.Community.AntidoteVerifier/Sdl.Community.AntidoteVerifier/pluginpackage.manifest.xml +++ b/Antidote Verifier/Sdl.Community.AntidoteVerifier/Sdl.Community.AntidoteVerifier/pluginpackage.manifest.xml @@ -1,7 +1,7 @@ Antidote Verifier - 4.0.3.0 + 4.0.3.1 Studio verifier that will verify the text in Antidote Trados AppStore Team