Skip to content

Commit d29a128

Browse files
author
sunjingzhao
committed
make hyperlink vertical alignment is vertical center
1 parent 7584bc7 commit d29a128

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

QXlsx/source/xlsxworksheet.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,6 +1027,7 @@ bool Worksheet::writeHyperlink(int row, int column, const QUrl &url, const Forma
10271027
Format fmt = format.isValid() ? format : d->cellFormat(row, column);
10281028
//Given a default style for hyperlink
10291029
if (!fmt.isValid()) {
1030+
fmt.setVerticalAlignment(Format::AlignVCenter);
10301031
fmt.setFontColor(Qt::blue);
10311032
fmt.setFontUnderline(Format::FontUnderlineSingle);
10321033
}

0 commit comments

Comments
 (0)