Commit 46e7d2fb authored by Andreas Pakulat's avatar Andreas Pakulat
Browse files

Finally (with a refresh mind) fix the painting of the marker numbers by...

Finally (with a refresh mind) fix the painting of the marker numbers by adjusting the rectangle thats used to calculate the font size.
BUG:151338

svn path=/trunk/KDE/kdegames/ksudoku/; revision=732069
parent 8cd81be4
......@@ -28,6 +28,7 @@
#include <QLinearGradient>
#include <kdebug.h>
#include "ksudoku.h"
#include "ksudokugame.h"
#include "sudokuview.h"
......@@ -430,8 +431,8 @@ void QSudokuButton::updateData() {
return;
}
int width = rect().width();
int height = rect().height();
int width = rect().adjusted(8,8,-8,-8).width();
int height = rect().adjusted(8,8,-8,-8).height();
m_state = info.state();
switch(info.state()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment