Browse code

fixing seg fault

kasperdanielhansen authored on 13/08/2021 01:19:44
Showing2 changed files

... ...
@@ -2,7 +2,7 @@ Package: Rgraphviz
2 2
 Title: Provides plotting capabilities for R graph objects
3 3
 Description: Interfaces R with the AT and T graphviz library for
4 4
         plotting R graph objects from the graph package.
5
-Version: 2.37.1
5
+Version: 2.37.2
6 6
 Authors@R: c(person(c("Kasper", "Daniel"), "Hansen", role = c("cre", "aut"),
7 7
                     email = "kasperdanielhansen@gmail.com"),
8 8
              person("Jeff", "Gentry", role = "aut"),
... ...
@@ -252,9 +252,6 @@ SEXP Rgraphviz_doLayout(SEXP graph, SEXP layoutType) {
252 252
     /* Call the appropriate Graphviz layout routine */
253 253
     gvLayout(gvc, g, CHAR(STRING_ELT(layoutType, 0)));
254 254
 
255
-    /* Call the appropriate Graphviz layout routine */
256
-    gvLayout(gvc, g, CHAR(STRING_ELT(layoutType, 0)));
257
-    
258 255
     /*
259 256
     if (!isInteger(layoutType))
260 257
         error("layoutType must be an integer value");