Skip to content

Commit

Permalink
Fixed warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dehli committed Nov 17, 2016
1 parent 51b4147 commit 7cdfc7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .swift-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0.1
3 changes: 1 addition & 2 deletions Sources/TouchDrawView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,7 @@ open class TouchDrawView: UIView {

/// removes the last stroke from stack
internal func popDrawing() {
let stroke = stack.last
self.stack.popLast()
let stroke = self.stack.popLast()
self.redrawLinePathsInStack()
self.touchDrawUndoManager!.registerUndo(withTarget: self, selector: #selector(TouchDrawView.pushDrawing(_:)), object: stroke)
}
Expand Down

0 comments on commit 7cdfc7c

Please sign in to comment.