Skip to content

Commit

Permalink
Merge pull request #19 from Sergio0694/dev
Browse files Browse the repository at this point in the history
Fixed a localization crash
  • Loading branch information
Sergio0694 committed Jun 24, 2019
2 parents e32a205 + 7860e15 commit 56159bd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions UICompositionAnimations/Behaviours/PipelineBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ private PipelineBuilder([NotNull] Func<Task<CompositionBrush>> factory)
{
string
guid = Guid.NewGuid().ToString("N"),
replaced = Regex.Replace(guid, "[0-9]", "_"),
id = new string(replaced.ToCharArray().Select((c, i) => c == '_' ? char.ToUpper((char)('a' + i % 26)) : c).ToArray());
id = Regex.Replace(guid, @"\d", m => ((char)('g' + m.Value[0] - '0')).ToString());
SourceProducer = () => Task.FromResult(new CompositionEffectSourceParameter(id).To<IGraphicsEffectSource>());
LazyParameters = new Dictionary<string, Func<Task<CompositionBrush>>> { { id, factory } };
AnimationProperties = new string[0];
Expand Down
6 changes: 3 additions & 3 deletions UICompositionAnimations/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.1.0.0")]
[assembly: AssemblyFileVersion("4.1.0.0")]
[assembly: AssemblyInformationalVersion("4.1.0")]
[assembly: AssemblyVersion("4.1.1.0")]
[assembly: AssemblyFileVersion("4.1.1.0")]
[assembly: AssemblyInformationalVersion("4.1.1")]
[assembly: ComVisible(false)]

4 changes: 2 additions & 2 deletions UICompositionAnimations/UICompositionAnimations.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
<package>
<metadata>
<id>UICompositionAnimations</id>
<version>4.1.0</version>
<version>4.1.1</version>
<title>UICompositionAnimations</title>
<description>A wrapper UWP PCL to work with Windows.UI.Composition and XAML animations, and Win2D effects</description>
<authors>Sergio Pedri</authors>
<owners>Sergio Pedri</owners>
<projectUrl>https://github.com/Sergio0694/UICompositionAnimations</projectUrl>
<license type="expression">GPL-3.0-only</license>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<releaseNotes>New composition brush APIs and pipeline effects</releaseNotes>
<releaseNotes>Fixed a localization crash</releaseNotes>
<copyright>Copyright © 2019</copyright>
<tags>uwp composition animations xaml csharp windows winrt universal app ui win2d graphics</tags>
<dependencies>
Expand Down

0 comments on commit 56159bd

Please sign in to comment.