mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-13 14:56:29 -04:00
uses the small shape for the NOT gate also in IEEE shape mode; closes #469
This commit is contained in:
parent
beb78d509f
commit
21d5ab6a05
@ -5,6 +5,7 @@
|
|||||||
*/
|
*/
|
||||||
package de.neemann.digital.draw.library;
|
package de.neemann.digital.draw.library;
|
||||||
|
|
||||||
|
import de.neemann.digital.core.basic.Not;
|
||||||
import de.neemann.digital.core.element.ElementAttributes;
|
import de.neemann.digital.core.element.ElementAttributes;
|
||||||
import de.neemann.digital.core.element.ElementTypeDescription;
|
import de.neemann.digital.core.element.ElementTypeDescription;
|
||||||
import de.neemann.digital.core.element.Keys;
|
import de.neemann.digital.core.element.Keys;
|
||||||
@ -306,7 +307,8 @@ public class LibraryNode implements Iterable<LibraryNode> {
|
|||||||
// set the wide shape option to the element
|
// set the wide shape option to the element
|
||||||
try {
|
try {
|
||||||
if (Settings.getInstance().get(Keys.SETTINGS_IEEE_SHAPES)
|
if (Settings.getInstance().get(Keys.SETTINGS_IEEE_SHAPES)
|
||||||
&& getDescription().hasAttribute(Keys.WIDE_SHAPE))
|
&& getDescription().hasAttribute(Keys.WIDE_SHAPE)
|
||||||
|
&& !visualElement.equalsDescription(Not.DESCRIPTION))
|
||||||
visualElement.setAttribute(Keys.WIDE_SHAPE, true);
|
visualElement.setAttribute(Keys.WIDE_SHAPE, true);
|
||||||
} catch (IOException e1) {
|
} catch (IOException e1) {
|
||||||
// do nothing on error
|
// do nothing on error
|
||||||
|
Loading…
x
Reference in New Issue
Block a user