projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed false alert in wxRegKey::DeleteSelf
[wxWidgets.git]
/
src
/
generic
/
gridg.cpp
diff --git
a/src/generic/gridg.cpp
b/src/generic/gridg.cpp
index b8ccc24fc71d721eb9fc2c984912c6ee4e93a52a..cb590108cbf6988ca8d2c6b9bbc1dab649c65b6a 100644
(file)
--- a/
src/generic/gridg.cpp
+++ b/
src/generic/gridg.cpp
@@
-1786,21
+1786,21
@@
void wxGenericGrid::DrawTextRect(wxDC *dc, const wxString& text, wxRect *rect, i
{
case wxRIGHT:
{
{
case wxRIGHT:
{
- x = (rect->x + rect->width - textWidth - 1.0);
- y = (rect->y + (rect->height - textHeight)/2.0);
+ x = (rect->x + rect->width - textWidth -
(float)
1.0);
+ y = (rect->y + (rect->height - textHeight)/
(float)
2.0);
break;
}
case wxCENTRE:
{
break;
}
case wxCENTRE:
{
- x = (rect->x + (rect->width - textWidth)/2.0);
- y = (rect->y + (rect->height - textHeight)/2.0);
+ x = (rect->x + (rect->width - textWidth)/
(float)
2.0);
+ y = (rect->y + (rect->height - textHeight)/
(float)
2.0);
break;
}
case wxLEFT:
default:
{
break;
}
case wxLEFT:
default:
{
- x = (rect->x + 1.0);
- y = (rect->y + (rect->height - textHeight)/2.0);
+ x = (rect->x +
(float)
1.0);
+ y = (rect->y + (rect->height - textHeight)/
(float)
2.0);
break;
}
}
break;
}
}