Skip to content

Commit

Permalink
バグ修正: 同じ高さの採番順
Browse files Browse the repository at this point in the history
近接幅が0倍の時、
同じ高さの図形の採番順が選択順になってしまうバグの修正をしました。
  • Loading branch information
ta-kon committed May 9, 2018
1 parent f9ac701 commit ac07380
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/source/test/
/source/連番太郎_自動ロード.xlsm
Binary file modified Numbering-ExcelAddin.xlam
Binary file not shown.
2 changes: 1 addition & 1 deletion source/Controller.bas
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ End Function

Private Function isCollision(ByVal left As Long, ByVal right As Long, ByVal collision As Double) As Boolean
' 幅を考慮した数値の比較
isCollision = (Abs(left - right) < collision)
isCollision = (Abs(left - right) <= collision)
End Function

Private Function isDescLocation(ByVal left As Long, ByVal right As Long) As Boolean
Expand Down
2 changes: 1 addition & 1 deletion source/View.bas
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ Sub onCollisionTextChange(ByRef control As IRibbonControl, ByRef text As String)
strDbl = Replace(strDbl, "倍", "")
strDbl = Trim(strDbl)
If IsNumeric(strDbl) Then
COLLISION = CDbl(strDbl)
COLLISION = Abs(CDbl(strDbl))
Else
Dim message As String
message = "数値を入力してください。(単位: 倍), 現在の値=" & text
Expand Down

0 comments on commit ac07380

Please sign in to comment.