Skip to content

Commit

Permalink
Removed debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Nov 6, 2011
1 parent 7e7b101 commit f35e66b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions screenlib/UIElementCheckbox.cpp
Expand Up @@ -62,15 +62,13 @@ UIElementCheckbox::FinishLoading()
// Extend the sensitive area to encompass the label
if (!m_textArea.IsEmpty()) {
if (m_textArea.X() >= X()) {
printf("%p Setting width to encompass text (%d >= %d)\n", this, m_textArea.X(), X());
SetWidth((m_textArea.X()+m_textArea.Width()) - X());
} else {
assert(!"Need code for labels on the left");
}
}
if (!m_imageArea.IsEmpty()) {
if (m_imageArea.X() >= X()) {
printf("%p Setting width to encompass image (%d >= %d)\n", this, m_imageArea.X(), X());
SetWidth((m_imageArea.X()+m_imageArea.Width()) - X());
} else {
assert(!"Need code for images on the left");
Expand Down

0 comments on commit f35e66b

Please sign in to comment.