TextEntry::SetPasswordMode does the opposite of what is expected
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Nux |
Fix Released
|
Undecided
|
Unassigned | ||
nux (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The following code is an example of the bug:
password_entry_ = new nux::TextEntry();
password_
const char password_char = '*';
password_
The above code should create a text entry that when it receives a key input from the user shows * instead of the actual chars. Unfortunately it is not the case. The main reason resides in the fact that the SetPasswordMode function is defined as:
void SetPasswordMode
{
SetVisibility
}
When it should be:
void SetPasswordMode
{
SetVisibility
}
This means that atm the code has to be:
password_
which as you will agree does not make sense.
Related branches
- Michal Hruby (community): Approve
-
Diff: 12 lines (+1/-1)1 file modifiedNux/TextEntry.h (+1/-1)
Changed in nux: | |
status: | New → Fix Committed |
Changed in nux: | |
status: | Fix Committed → Fix Released |
Changed in nux (Ubuntu): | |
status: | New → Fix Released |