OSDN Git Service
(root)
/
pheasant
/
hexedit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eac262e
)
fix standard::hexview drawLines
author
suma
<devnull@localhost>
Tue, 20 Jan 2009 14:44:16 +0000
(23:44 +0900)
committer
suma
<devnull@localhost>
Tue, 20 Jan 2009 14:44:16 +0000
(23:44 +0900)
src/control/standard/hexview.cpp
patch
|
blob
|
history
diff --git
a/src/control/standard/hexview.cpp
b/src/control/standard/hexview.cpp
index
cae7e3c
..
65c543f
100644
(file)
--- a/
src/control/standard/hexview.cpp
+++ b/
src/control/standard/hexview.cpp
@@
-279,7
+279,7
@@
void HexView::drawLines(QPainter &painter, int y, int y_top)
painter.fillRect(begin, y_top, width, config_.byteHeight(), brush);
// Draw text
- for (int
k = 0; k < color_count; k
++, index_byte++, pos_x++) {
+ for (int
i = 0; i < color_count; i
++, index_byte++, pos_x++) {
byteToHex(buff_[index_byte], hex);
painter.drawText(config_.x(pos_x), y, config_.charWidth(2), config_.charHeight(), Qt::AlignCenter, hex);
}