fix debug warning (and wrong pen value) found by kfunk, introduced my me
Differential Revision: https://phabricator.kde.org/D5108