Skip to content

Commit

Permalink
fix: step number related and promote snap version to v0.5.42 🎨 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
Joker2770 committed Jun 6, 2023
1 parent df94173 commit 0b6475d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion snap/gui/qpiskvork.desktop
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[Desktop Entry]
Version=0.5.28
Version=0.5.42
Encoding=UTF-8
Name=qpiskvork
Comment=A gomoku or renju manager adapting to Windows and Linux systems.
Expand Down
2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

name: qpiskvork # you probably want to 'snapcraft register <name>'
version: '0.5.30' # just for humans, typically '1.2+git' or '1.3.2'
version: '0.5.42' # just for humans, typically '1.2+git' or '1.3.2'
summary: Another gomoku or renju manager adapting to Windows and Linux systems. # 79 char long summary
description: |
This program aims to become a gomoku or renju manager with the protocol
Expand Down
2 changes: 1 addition & 1 deletion src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ void MainWindow::DrawStepNum()
{
int i_x = this->mBoard->coord2idx(this->mBoard->getVRecord().at(i).first).first + 1;
int i_y = this->mBoard->coord2idx(this->mBoard->getVRecord().at(i).first).second + 2;
QString s_idx = QString::number(i, 10);
QString s_idx = QString::number(i + 1, 10);

QFontMetricsF fm(painter.font());
double textWidth = fm.width(s_idx);
Expand Down

0 comments on commit 0b6475d

Please sign in to comment.