mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Drop down list doens't skip disabled items.
Fixed bug: scripted visibility didn't work. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@469 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -142,9 +142,9 @@ void DataViewer::setStyles(const StyleSheetP& stylesheet, IndexMap<FieldP,StyleP
|
||||
void DataViewer::addStyles(IndexMap<FieldP,StyleP>& styles) {
|
||||
FOR_EACH(s, styles) {
|
||||
if ((s->visible || s->visible.isScripted()) &&
|
||||
nativeLook() || (
|
||||
(nativeLook() || (
|
||||
(s->width || s->width .isScripted() || s->right || s->right .isScripted()) &&
|
||||
(s->height || s->height .isScripted() || s->bottom || s->bottom.isScripted()))) {
|
||||
(s->height || s->height .isScripted() || s->bottom || s->bottom.isScripted())))) {
|
||||
// no need to make a viewer for things that are always invisible
|
||||
ValueViewerP viewer = makeViewer(s);
|
||||
if (viewer) viewers.push_back(viewer);
|
||||
|
||||
Reference in New Issue
Block a user