OSDN Git Service

SSTFEditor で、譜面拡大率の選択肢が下方のときに例外が発生してたミスを修正。
authorくまかみ工房 <kumakamikoubou@gmail.com>
Thu, 1 Dec 2016 12:36:45 +0000 (21:36 +0900)
committerくまかみ工房 <kumakamikoubou@gmail.com>
Thu, 1 Dec 2016 12:36:45 +0000 (21:36 +0900)
SSTFEditor/メインフォーム.cs

index 1997e77..a5912b6 100644 (file)
@@ -811,7 +811,7 @@ namespace SSTFEditor
 
                private void _譜面拡大率を変更する( int n倍 )
                {
-                       if( ( 1 > n倍 ) || ( 10 < n倍 ) )
+                       if( ( 1 > n倍 ) || ( this.toolStripComboBox譜面拡大率.Items.Count < n倍 ) )
                                throw new ArgumentException( $"不正な譜面拡大率({n倍})が指定されました。" );
 
                        this.toolStripComboBox譜面拡大率.SelectedIndex = ( n倍 - 1 );