Skip to content

Commit cdf8a95

Browse files
authored
Merge pull request #27 from cmbsolutions/develop
Fixes #26 plugin crash
2 parents 60816fe + 594eea0 commit cdf8a95

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

nppRandomStringGenerator/Forms/ConfigAndGenerate.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public void LoadSettings()
4040
if (ctrl.Name.StartsWith("NumericUpDown"))
4141
{
4242
NumericUpDown nupdown = ctrl as NumericUpDown;
43-
nupdown.Value = Convert.ToDecimal(configitem.Value);
43+
nupdown.Value = Math.Min(Convert.ToDecimal(configitem.Value), nupdown.Maximum);
4444
}
4545
if (ctrl.Name.StartsWith("Checkbox"))
4646
{

nppRandomStringGenerator/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.7.1")]
36-
[assembly: AssemblyFileVersion("1.7.1")]
35+
[assembly: AssemblyVersion("1.7.2")]
36+
[assembly: AssemblyFileVersion("1.7.2")]

nppRandomStringGenerator/Storage/Settings.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void Load(bool reset = false)
4545
settings = DeserializeIni(FilePath);
4646

4747

48-
if (settings.Appversion != "1.7.0")
48+
if (settings.Appversion != "1.7.2")
4949
{
5050
SettingsModel defaults = DeserializeIniFromString(Resources.nppRandomStringGeneratorSettings);
5151

@@ -57,7 +57,7 @@ public void Load(bool reset = false)
5757
}
5858
}
5959
settings.Appname = "nppRandomStringGenerator";
60-
settings.Appversion = "1.7.0";
60+
settings.Appversion = "1.7.2";
6161
}
6262
}
6363
catch (Exception ex)

nppRandomStringGenerator/Storage/nppRandomStringGeneratorSettings.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
appname=nppRandomStringGenerator
2-
appversion=1.7.0
2+
appversion=1.7.2
33
NumericUpDownLength=32
44
NumericUpDownQuantity=8
55
CheckboxNumbers=true

0 commit comments

Comments
 (0)