Remove usage of deprecated function getPattern()
merged branch Danez/patch-1 (PR #762)

This PR was merged into the master branch.

Discussion
----------

Remove usage of deprecated function getPattern()

Found another one.
Did also some search now and there is no set/get-Pattern anymore.

Commits
-------

36be14f Remove usage of deprecated function getPattern()