X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fdropdown.cpp;h=d7119b7cfb72cec92d54bbf7ed2d1b02ff7b3c71;hb=ef4660c4bdf38e126e13b426649fc2f997027b65;hp=cbd7ee437111bc3726b1c0ba988471638142140b;hpb=8a0058b5b90bb7e9eacf1646142f4d73b426fd66;p=libs%2Fgltk.git diff --git a/source/dropdown.cpp b/source/dropdown.cpp index cbd7ee4..d7119b7 100644 --- a/source/dropdown.cpp +++ b/source/dropdown.cpp @@ -11,6 +11,7 @@ Distributed under the LGPL #include "panel.h" #include "part.h" #include "style.h" +#include "text.h" using namespace std; @@ -98,7 +99,7 @@ void Dropdown::render_special(const Part &part) const if(part.get_name()=="text") { if(list.get_selected_index()>=0) - render_text(part, list.get_selected()); + Text(*style, list.get_selected()).render(part, geom); } else if(part.get_name()=="list" && dropped) list.render();