diff --git a/src/foptiattr.cpp b/src/foptiattr.cpp index 179eac13..1d31d926 100644 --- a/src/foptiattr.cpp +++ b/src/foptiattr.cpp @@ -849,7 +849,7 @@ short FOptiAttr::vga2ansi (register short color) // 1 1 1 0 | 1 0 1 1 // 1 1 1 1 | 1 1 1 1 - if ( ! color < 0 && color < 16 ) + if ( color >= 0 && color < 16 ) { static const short lookup_table[] = { diff --git a/test/term-attributes.cpp b/test/term-attributes.cpp index 7a7b2bd3..0116269a 100644 --- a/test/term-attributes.cpp +++ b/test/term-attributes.cpp @@ -26,9 +26,6 @@ class AttribDlg : public FDialog AttribDlg& operator = (const AttribDlg&); // and operator '=' void adjustSize(); - protected: - friend class AttribDemo; - public: explicit AttribDlg (FWidget* = 0); // constructor ~AttribDlg(); // destructor