projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix off by 1 error in GetTextRaw() (#4317)
[wxWidgets.git]
/
src
/
dfb
/
pen.cpp
diff --git
a/src/dfb/pen.cpp
b/src/dfb/pen.cpp
index c71488b5875281abaa42ad9ffe2e68b9383ddcb4..5b70c698bf0afbc17a5c12826f26b411c23b1b7e 100644
(file)
--- a/
src/dfb/pen.cpp
+++ b/
src/dfb/pen.cpp
@@
-40,7
+40,7
@@
public:
virtual bool IsOk() const { return m_colour.IsOk(); }
virtual bool IsOk() const { return m_colour.IsOk(); }
- void SetStyle(
int
style)
+ void SetStyle(
wxPenStyle
style)
{
if ( style != wxPENSTYLE_SOLID && style != wxPENSTYLE_TRANSPARENT )
{
{
if ( style != wxPENSTYLE_SOLID && style != wxPENSTYLE_TRANSPARENT )
{
@@
-183,7
+183,7
@@
int wxPen::GetWidth() const
return 1;
}
return 1;
}
-wxColour
&
wxPen::GetColour() const
+wxColour wxPen::GetColour() const
{
wxCHECK_MSG( Ok(), wxNullColour, wxT("invalid pen") );
{
wxCHECK_MSG( Ok(), wxNullColour, wxT("invalid pen") );