Skip to content

Commit

Permalink
Skip dot version check when -n,--no-filter.
Browse files Browse the repository at this point in the history
Fixes #121
  • Loading branch information
jrfonseca committed Sep 18, 2023
1 parent e875d51 commit 81a60c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xdot/ui/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def set_dotcode(self, dotcode, filename=None, center=True):
def set_xdotcode(self, xdotcode, center=True):
assert isinstance(xdotcode, bytes)

if self.graphviz_version is None:
if self.graphviz_version is None and self.filter is not None:
stdout = subprocess.check_output([self.filter, '-V'], stderr=subprocess.STDOUT)
stdout = stdout.rstrip()
mo = re.match(br'^.* - .* version (?P<version>.*) \(.*\)$', stdout)
Expand Down

0 comments on commit 81a60c3

Please sign in to comment.